Commit de305ecd47c8f2bb5aa8a4efc63f759d8d4e16e2
Committed by
GitHub
1 parent
a2224042
fix: 修复页面缓存 (#2575)
1. 修复页面不能缓存的bug 2. 此更新为破坏性更新,页面不支持多标签使用 3. 将表单设计模块多标签改成单标签
Showing
2 changed files
with
6 additions
and
7 deletions
src/layouts/page/index.vue
@@ -15,13 +15,9 @@ | @@ -15,13 +15,9 @@ | ||
15 | appear | 15 | appear |
16 | > | 16 | > |
17 | <keep-alive v-if="openCache" :include="getCaches"> | 17 | <keep-alive v-if="openCache" :include="getCaches"> |
18 | - <div :key="route.name"> | ||
19 | - <component :is="Component" :key="route.fullPath" /> | ||
20 | - </div> | ||
21 | - </keep-alive> | ||
22 | - <div v-else :key="route.name"> | ||
23 | <component :is="Component" :key="route.fullPath" /> | 18 | <component :is="Component" :key="route.fullPath" /> |
24 | - </div> | 19 | + </keep-alive> |
20 | + <component v-else :is="Component" :key="route.fullPath" /> | ||
25 | </transition> | 21 | </transition> |
26 | </template> | 22 | </template> |
27 | </RouterView> | 23 | </RouterView> |
src/views/form-design/index.vue
1 | <template> | 1 | <template> |
2 | - <VFormDesign /> | 2 | + <PageWrapper dense contentFullHeight fixedHeight> |
3 | + <VFormDesign /> | ||
4 | + </PageWrapper> | ||
3 | </template> | 5 | </template> |
4 | 6 | ||
5 | <script lang="ts" setup> | 7 | <script lang="ts" setup> |
8 | + import { PageWrapper } from '/@/components/Page'; | ||
6 | import VFormDesign from './components/VFormDesign/index.vue'; | 9 | import VFormDesign from './components/VFormDesign/index.vue'; |
7 | </script> | 10 | </script> |
8 | 11 |