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:
花裤衩
2018-05-30 15:25:08 +08:00
committed by GitHub
parent 6327869106
commit 4fc25241fe
32 changed files with 383 additions and 216 deletions

View File

@@ -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>

View File

@@ -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()