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

1

parent 14f27e25
<template>
<section class="app-main">
<transition name="fade-transform" mode="out-in">
<keep-alive v-if="cachedViews.includes(key)" >
<router-view :key="key" />
</keep-alive>
<router-view v-else :key="key" />
</transition>
</section>
</template>
......@@ -17,7 +15,6 @@ export default {
return this.$store.state.tagsView.cachedViews
},
key() {
console.log(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