mirror of
https://github.com/fantastic-admin/basic.git
synced 2026-10-06 18:24:07 +08:00
移除 keep-alive 组件延迟设置 include 参数无效的 hack 写法
This commit is contained in:
@@ -82,8 +82,7 @@ function switchMenu(index) {
|
||||
<div class="main">
|
||||
<router-view v-slot="{ Component, route }">
|
||||
<transition name="main" mode="out-in" appear>
|
||||
<!-- BUG https://github.com/vuejs/vue-next/issues/4984 -->
|
||||
<keep-alive :include="[...keepAliveStore.list]">
|
||||
<keep-alive :include="keepAliveStore.list">
|
||||
<component :is="Component" :key="route.fullPath" />
|
||||
</keep-alive>
|
||||
</transition>
|
||||
|
||||
Reference in New Issue
Block a user