|
@@ -1,8 +1,7 @@
|
1
|
1
|
<template>
|
2
|
2
|
<section class="app-main">
|
3
|
3
|
<transition name="fade" mode="out-in">
|
4
|
|
- <!-- <router-view :key="key"></router-view> -->
|
5
|
|
- <router-view></router-view>
|
|
4
|
+ <router-view :key="key"></router-view>
|
6
|
5
|
</transition>
|
7
|
6
|
</section>
|
8
|
7
|
</template>
|
|
@@ -11,9 +10,9 @@
|
11
|
10
|
export default {
|
12
|
11
|
name: 'AppMain',
|
13
|
12
|
computed: {
|
14
|
|
- // key() {
|
15
|
|
- // return this.$route.name !== undefined ? this.$route.name + +new Date() : this.$route + +new Date()
|
16
|
|
- // }
|
|
13
|
+ key() {
|
|
14
|
+ return this.$route.name !== undefined ? this.$route.name + +new Date() : this.$route + +new Date()
|
|
15
|
+ }
|
17
|
16
|
}
|
18
|
17
|
}
|
19
|
18
|
</script>
|