天波h5前端应用
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
1.0KB

  1. <!--
  2. * @Date: 2022-01-19 10:08:26
  3. * @LastEditors: JinxChen
  4. * @LastEditTime: 2022-05-10 18:25:55
  5. * @FilePath: \AntpayFrontEnd\src\App.vue
  6. * @description:
  7. -->
  8. <template>
  9. <div id="app">
  10. <router-view v-if="isRouterAlive" />
  11. </div>
  12. </template>
  13. <script>
  14. import { VERSION_MODEL } from './config/models';
  15. export default {
  16. provide() {
  17. return {
  18. reload: this.reload
  19. }
  20. },
  21. data() {
  22. return {
  23. isRouterAlive: true,
  24. }
  25. },
  26. mounted() {
  27. console.log("当前版本号::", VERSION_MODEL, "当前环境::", process.env.NODE_ENV, this.$title);
  28. },
  29. methods: {
  30. reload() {
  31. this.isRouterAlive = false;
  32. this.$nextTick(() => {
  33. this.isRouterAlive = true;
  34. });
  35. },
  36. }
  37. }
  38. </script>
  39. <style lang="scss">
  40. #app {
  41. text-align: center;
  42. color: #2c3e50;
  43. height: 100vh;
  44. width: 100%;
  45. background-color: #f7f8fa;
  46. }
  47. </style>