回滚移除 <Suspense>

This commit is contained in:
Hooray
2025-04-03 17:53:53 +08:00
parent bd430e2788
commit 664114b1a5
2 changed files with 4 additions and 3 deletions
+1 -3
View File
@@ -111,9 +111,7 @@ const enableAppSetting = import.meta.env.VITE_APP_SETTING
<RouterView v-slot="{ Component, route }">
<Transition :name="!settingsStore.isReloading ? 'slide-right' : ''" mode="out-in">
<KeepAlive :include="keepAliveStore.list">
<Suspense>
<component :is="Component" v-show="!isLink" :key="route.fullPath" />
</Suspense>
<component :is="Component" v-show="!isLink" :key="route.fullPath" />
</KeepAlive>
</Transition>
</RouterView>
@@ -29,6 +29,9 @@ meta:
<FaButton disabled>
按钮
</FaButton>
<FaButton loading>
按钮
</FaButton>
</div>
</FaPageMain>
</div>