1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
| <template>
| <div id="app">
| <router-view v-if="isRouterAlive"></router-view>
| </div>
| </template>
| <script>
| import moment from "moment";
| // import "moment/locale/zh-cn";
| moment.locale("zh-cn");
| export default {
| provide() {
| return {
| reload: this.reload,
| };
| },
| data() {
| return {
| isRouterAlive: true,
| };
| },
| methods: {
| reload() {
| this.isRouterAlive = false;
| this.$nextTick(() => (this.isRouterAlive = true));
| },
| },
| };
| </script>
| <style>
| @import "./assets/css/main.css";
| </style>
|
|