mirror of
https://github.com/fantastic-admin/basic.git
synced 2026-10-06 14:53:50 +08:00
layouts 布局支持 <Suspense>
This commit is contained in:
@@ -111,7 +111,9 @@ 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">
|
||||
<component :is="Component" v-show="!isLink" :key="route.fullPath" />
|
||||
<Suspense>
|
||||
<component :is="Component" v-show="!isLink" :key="route.fullPath" />
|
||||
</Suspense>
|
||||
</KeepAlive>
|
||||
</Transition>
|
||||
</RouterView>
|
||||
|
||||
Reference in New Issue
Block a user