!111 解决点击菜单时页面空白或者重新刷新整个页面的问题

Merge pull request !111 from 周旭湘/dev
This commit is contained in:
疯狂的狮子Li 2024-05-07 09:47:18 +00:00 committed by Gitee
commit 72ca7a1aae
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -2,9 +2,12 @@
<section class="app-main">
<router-view v-slot="{ Component, route }">
<transition :enter-active-class="animante" mode="out-in">
<keep-alive :include="tagsViewStore.cachedViews">
<component :is="Component" v-if="!route.meta.link" :key="route.path" />
</keep-alive>
<div>
<keep-alive :include="tagsViewStore.cachedViews" v-if="!route.meta.noCache">
<component v-if="!route.meta.link" :is="Component" :key="route.path" />
</keep-alive>
<component v-if="!route.meta.link && route.meta.noCache" :is="Component" :key="route.path" />
</div>
</transition>
</router-view>
<iframe-toggle />