Commit 6e391af3fef5cf058d7d866ff941fb744d314d61

Authored by BlackTooth
Committed by GitHub
1 parent 7925c1ea

fix(keep-alive): disabler (#2101)

Co-authored-by: 隆杰 <longjie.li@taxsoyea.net>
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" />
... ...
src/views/demo/table/Basic.vue
... ... @@ -61,7 +61,6 @@
61 61 function handleColumnChange(data: ColumnChangeParam[]) {
62 62 console.log('ColumnChanged', data);
63 63 }
64   -
65 64 return {
66 65 columns: getBasicColumns(),
67 66 data: getBasicData(),
... ...