review code.

This commit is contained in:
lijiahang
2023-12-01 17:29:42 +08:00
parent 351669a4f3
commit e8d99cb263
21 changed files with 235 additions and 132 deletions

View File

@@ -2,11 +2,9 @@
<router-view v-slot="{ Component, route }">
<transition name="fade" mode="out-in" appear>
<!-- 渲染组件 -->
<component
:is="Component"
v-if="route.meta.ignoreCache"
:key="route.fullPath"
/>
<component :is="Component"
v-if="route.meta.ignoreCache"
:key="route.fullPath" />
<!-- 渲染缓存组件 -->
<keep-alive v-else :include="cacheList">
<component :is="Component" :key="route.fullPath" />