fix 修复 从无缓存页面切换到有缓存页面 缓存失效问题
This commit is contained in:
@ -1,14 +1,11 @@
|
|||||||
<template>
|
<template>
|
||||||
<section class="app-main">
|
<section class="app-main">
|
||||||
<router-view v-slot="{ Component, route }">
|
<router-view v-slot="{ Component, route }">
|
||||||
<transition v-if="!route.meta.noCache" :enter-active-class="animate" mode="out-in">
|
<transition :enter-active-class="animate" mode="out-in">
|
||||||
<keep-alive v-if="!route.meta.noCache" :include="tagsViewStore.cachedViews">
|
<keep-alive :include="tagsViewStore.cachedViews">
|
||||||
<component :is="Component" v-if="!route.meta.link" :key="route.path" />
|
<component :is="Component" v-if="!route.meta.link" :key="route.path" />
|
||||||
</keep-alive>
|
</keep-alive>
|
||||||
</transition>
|
</transition>
|
||||||
<transition v-if="route.meta.noCache" :enter-active-class="animate" mode="out-in">
|
|
||||||
<component :is="Component" v-if="!route.meta.link && route.meta.noCache" :key="route.path" />
|
|
||||||
</transition>
|
|
||||||
</router-view>
|
</router-view>
|
||||||
<iframe-toggle />
|
<iframe-toggle />
|
||||||
</section>
|
</section>
|
||||||
|
Reference in New Issue
Block a user