Browse Source

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

Co-authored-by: 隆杰 <longjie.li@taxsoyea.net>
pull/2112/head
BlackTooth 4 years ago
committed by GitHub
parent
commit
6e391af3fe
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/layouts/page/index.vue
  2. 1
      src/views/demo/table/Basic.vue

4
src/layouts/page/index.vue

@ -15,9 +15,7 @@
appear
>
<keep-alive v-if="openCache" :include="getCaches">
<div :key="route.name">
<component :is="Component" :key="route.fullPath" />
</div>
<component :is="Component" :key="route.fullPath" />
</keep-alive>
<div v-else :key="route.name">
<component :is="Component" :key="route.fullPath" />

1
src/views/demo/table/Basic.vue

@ -61,7 +61,6 @@
function handleColumnChange(data: ColumnChangeParam[]) {
console.log('ColumnChanged', data);
}
return {
columns: getBasicColumns(),
data: getBasicData(),

Loading…
Cancel
Save