refactor example demo (#713)
* refactor: Adjust the example directory structure * perf form demo * refine editor-slide-upload css * refine demo
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
<section class="app-main" style="min-height: 100%">
|
||||
<transition name="fade-transform" mode="out-in">
|
||||
<keep-alive :include="cachedViews">
|
||||
<router-view></router-view>
|
||||
<router-view :key="key"></router-view>
|
||||
</keep-alive>
|
||||
</transition>
|
||||
</section>
|
||||
@@ -14,10 +14,10 @@ export default {
|
||||
computed: {
|
||||
cachedViews() {
|
||||
return this.$store.state.tagsView.cachedViews
|
||||
},
|
||||
key() {
|
||||
return this.$route.fullPath
|
||||
}
|
||||
// key() {
|
||||
// return this.$route.name !== undefined ? this.$route.name + +new Date() : this.$route + +new Date()
|
||||
// }
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
@@ -59,7 +59,7 @@ export default {
|
||||
return false
|
||||
},
|
||||
isActive(route) {
|
||||
return route.path === this.$route.path || route.name === this.$route.name
|
||||
return route.path === this.$route.path
|
||||
},
|
||||
addViewTags() {
|
||||
const route = this.generateRoute()
|
||||
|
Reference in New Issue
Block a user