fix: 去掉tab页切换的渐变动画
This commit is contained in:
@ -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" />
|
||||||
|
|||||||
Reference in New Issue
Block a user