enhance(client): suspense

Fix #8817
This commit is contained in:
syuilo
2022-07-19 21:36:33 +09:00
parent b495f6cfff
commit 17afbc3c46
2 changed files with 14 additions and 1 deletions

View File

@ -1,6 +1,12 @@
<template>
<KeepAlive :max="defaultStore.state.numberOfPageCache">
<component :is="currentPageComponent" :key="key" v-bind="Object.fromEntries(currentPageProps)"/>
<Suspense>
<component :is="currentPageComponent" :key="key" v-bind="Object.fromEntries(currentPageProps)"/>
<template #fallback>
Loading...
</template>
</Suspense>
</KeepAlive>
</template>