fix: 去掉tab页切换的渐变动画

This commit is contained in:
gaoyunqi
2024-03-04 11:14:08 +08:00
parent 9ed70d1dde
commit 633d9bbe0d

View File

@ -1,24 +1,10 @@
<template> <template>
<RouterView> <RouterView>
<template #default="{ Component, route }"> <template #default="{ Component, route }">
<transition <keep-alive v-if="openCache" :include="getCaches">
:name=" <component :is="wrap(route.name, Component)" :key="route.fullPath" />
getTransitionName({ </keep-alive>
route, <component v-else :is="Component" :key="route.fullPath" />
openCache,
enableTransition: getEnableTransition,
cacheTabs: getCaches,
def: getBasicTransition,
})
"
mode="out-in"
appear
>
<keep-alive v-if="openCache" :include="getCaches">
<component :is="wrap(route.name, Component)" :key="route.fullPath" />
</keep-alive>
<component v-else :is="Component" :key="route.fullPath" />
</transition>
</template> </template>
</RouterView> </RouterView>
<FrameLayout v-if="getCanEmbedIFramePage" /> <FrameLayout v-if="getCanEmbedIFramePage" />