fix: 修复页面缓存 (#2575)

1. 修复页面不能缓存的bug
2. 此更新为破坏性更新,页面不支持多标签使用
3. 将表单设计模块多标签改成单标签
This commit is contained in:
lzdjack 2023-02-23 10:28:05 +08:00 committed by GitHub
parent a222404220
commit de305ecd47
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 7 deletions

View File

@ -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>

View File

@ -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>