Commit 5b6b09c0 authored by 李苏's avatar 李苏 💬

1

parent 14f27e25
<template> <template>
<section class="app-main"> <section class="app-main">
<transition name="fade-transform" mode="out-in">
<keep-alive v-if="cachedViews.includes(key)" > <keep-alive v-if="cachedViews.includes(key)" >
<router-view :key="key" /> <router-view :key="key" />
</keep-alive> </keep-alive>
<router-view v-else :key="key" /> <router-view v-else :key="key" />
</transition>
</section> </section>
</template> </template>
...@@ -17,7 +15,6 @@ export default { ...@@ -17,7 +15,6 @@ export default {
return this.$store.state.tagsView.cachedViews return this.$store.state.tagsView.cachedViews
}, },
key() { key() {
console.log(this.$route.name)
return this.$route.name return this.$route.name
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment