update src/layout/components/AppMain.vue.
解决点击左边菜单时页面空白或者刷新整个页面的问题 Signed-off-by: 周旭湘 <3423729430@qq.com>
This commit is contained in:
parent
935a199f71
commit
907dc4efb4
@ -2,9 +2,12 @@
|
|||||||
<section class="app-main">
|
<section class="app-main">
|
||||||
<router-view v-slot="{ Component, route }">
|
<router-view v-slot="{ Component, route }">
|
||||||
<transition :enter-active-class="animante" mode="out-in">
|
<transition :enter-active-class="animante" mode="out-in">
|
||||||
<keep-alive :include="tagsViewStore.cachedViews">
|
<div>
|
||||||
<component :is="Component" v-if="!route.meta.link" :key="route.path" />
|
<keep-alive :include="tagsViewStore.cachedViews" v-if="!route.meta.noCache">
|
||||||
</keep-alive>
|
<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>
|
</transition>
|
||||||
</router-view>
|
</router-view>
|
||||||
<iframe-toggle />
|
<iframe-toggle />
|
||||||
|
Loading…
x
Reference in New Issue
Block a user