|
|
|
@ -18,12 +18,16 @@ export function getTransitionName({ |
|
|
|
def: string; |
|
|
|
cacheTabs: string[]; |
|
|
|
}) { |
|
|
|
if (!enableTransition) { |
|
|
|
return null; |
|
|
|
} |
|
|
|
|
|
|
|
const isInCache = cacheTabs.includes(route.name as string); |
|
|
|
const transitionName = 'fade-slide'; |
|
|
|
let name: string | null = transitionName; |
|
|
|
|
|
|
|
if (openCache) { |
|
|
|
name = isInCache && route.meta.loaded && enableTransition ? transitionName : null; |
|
|
|
name = isInCache && route.meta.loaded ? transitionName : null; |
|
|
|
} |
|
|
|
return name || route.meta.transitionName || def; |
|
|
|
} |
|
|
|
|