From 5ca894369a833330d79cf7948b3f0b0776c3d286 Mon Sep 17 00:00:00 2001 From: 秋辞未寒 <545073804@qq.com> Date: 星期四, 28 十一月 2024 14:15:10 +0800 Subject: [PATCH] remove 移除 已经不再依赖的冗余文件 --- src/layout/components/AppMain.vue | 14 +++++++------- 1 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/layout/components/AppMain.vue b/src/layout/components/AppMain.vue index d634935..7f86ef4 100644 --- a/src/layout/components/AppMain.vue +++ b/src/layout/components/AppMain.vue @@ -1,13 +1,13 @@ <template> <section class="app-main"> <router-view v-slot="{ Component, route }"> - <transition :enter-active-class="animante" mode="out-in"> - <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 v-if="!route.meta.noCache" :enter-active-class="animante" mode="out-in"> + <keep-alive v-if="!route.meta.noCache" :include="tagsViewStore.cachedViews"> + <component :is="Component" v-if="!route.meta.link" :key="route.path" /> + </keep-alive> + </transition> + <transition v-if="route.meta.noCache" :enter-active-class="animante" mode="out-in"> + <component :is="Component" v-if="!route.meta.link && route.meta.noCache" :key="route.path" /> </transition> </router-view> <iframe-toggle /> -- Gitblit v1.9.3