Browse Source
fix: 修复页面缓存 (#2575)
1. 修复页面不能缓存的bug
2. 此更新为破坏性更新,页面不支持多标签使用
3. 将表单设计模块多标签改成单标签
pull/2577/head
lzdjack
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
6 additions and
7 deletions
-
src/layouts/page/index.vue
-
src/views/form-design/index.vue
|
|
|
@ -15,13 +15,9 @@ |
|
|
|
appear |
|
|
|
> |
|
|
|
<keep-alive v-if="openCache" :include="getCaches"> |
|
|
|
<div :key="route.name"> |
|
|
|
<component :is="Component" :key="route.fullPath" /> |
|
|
|
</div> |
|
|
|
</keep-alive> |
|
|
|
<div v-else :key="route.name"> |
|
|
|
<component :is="Component" :key="route.fullPath" /> |
|
|
|
</div> |
|
|
|
</keep-alive> |
|
|
|
<component v-else :is="Component" :key="route.fullPath" /> |
|
|
|
</transition> |
|
|
|
</template> |
|
|
|
</RouterView> |
|
|
|
|
|
|
|
@ -1,8 +1,11 @@ |
|
|
|
<template> |
|
|
|
<VFormDesign /> |
|
|
|
<PageWrapper dense contentFullHeight fixedHeight> |
|
|
|
<VFormDesign /> |
|
|
|
</PageWrapper> |
|
|
|
</template> |
|
|
|
|
|
|
|
<script lang="ts" setup> |
|
|
|
import { PageWrapper } from '/@/components/Page'; |
|
|
|
import VFormDesign from './components/VFormDesign/index.vue'; |
|
|
|
</script> |
|
|
|
|
|
|
|
|