fix: Page switching display is abnormal

This commit is contained in:
vben
2024-06-23 19:55:55 +08:00
parent 16ed5a05ba
commit 89586ef2c4
5 changed files with 10 additions and 32 deletions

View File

@@ -12,7 +12,7 @@ defineOptions({ name: 'LayoutContent' });
const { keepAlive } = usePreferences();
const tabsStore = useTabsStore();
const { onTransitionEnd, spinning } = useContentSpinner();
const { spinning } = useContentSpinner();
const { getCacheTabs, getExcludeTabs, renderRouteView } =
storeToRefs(tabsStore);
@@ -51,12 +51,7 @@ function getTransitionName(route: RouteLocationNormalizedLoaded) {
/>
<IFrameRouterView />
<RouterView v-slot="{ Component, route }">
<Transition
:name="getTransitionName(route)"
appear
mode="out-in"
@transitionend="onTransitionEnd"
>
<Transition :name="getTransitionName(route)" appear mode="out-in">
<KeepAlive
v-if="keepAlive"
:exclude="getExcludeTabs"