Commit 6e391af3fef5cf058d7d866ff941fb744d314d61
Committed by
GitHub
1 parent
7925c1ea
fix(keep-alive): disabler (#2101)
Co-authored-by: 隆杰 <longjie.li@taxsoyea.net>
Showing
2 changed files
with
1 additions
and
4 deletions
src/layouts/page/index.vue
... | ... | @@ -15,9 +15,7 @@ |
15 | 15 | appear |
16 | 16 | > |
17 | 17 | <keep-alive v-if="openCache" :include="getCaches"> |
18 | - <div :key="route.name"> | |
19 | - <component :is="Component" :key="route.fullPath" /> | |
20 | - </div> | |
18 | + <component :is="Component" :key="route.fullPath" /> | |
21 | 19 | </keep-alive> |
22 | 20 | <div v-else :key="route.name"> |
23 | 21 | <component :is="Component" :key="route.fullPath" /> | ... | ... |