We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
<Suspense>
1 parent b55ea0f commit 9d20a8fCopy full SHA for 9d20a8f
src/layouts/index.vue
@@ -111,7 +111,9 @@ const enableAppSetting = import.meta.env.VITE_APP_SETTING
111
<RouterView v-slot="{ Component, route }">
112
<Transition :name="!settingsStore.isReloading ? 'slide-right' : ''" mode="out-in">
113
<KeepAlive :include="keepAliveStore.list">
114
- <component :is="Component" v-show="!isLink" :key="route.fullPath" />
+ <Suspense>
115
+ <component :is="Component" v-show="!isLink" :key="route.fullPath" />
116
+ </Suspense>
117
</KeepAlive>
118
</Transition>
119
</RouterView>
0 commit comments