In order to show a loading indicator when loading route.
- Use the vue document recommended syntax ( https://vuejs.org/guide/built-ins/suspense.html#combining-with-other-components )
<router-view v-slot="{ Component }">
<Suspense timeout="0">
<component :is="Component" />
<template #fallback>
<spinner />
</template>