chore: Update main.css and main.ts, add data-loaders.[id].vue and update index-page.vue
All checks were successful
CI / cache-and-install (push) Successful in 1m9s

This commit is contained in:
严浩
2024-08-14 10:17:49 +08:00
parent ed90618007
commit 87cf34de82
5 changed files with 81 additions and 3 deletions

View File

@ -6,5 +6,12 @@ import { createPinia } from 'pinia';
import App from './App.vue';
import { router } from './router';
import { DataLoaderPlugin } from 'unplugin-vue-router/data-loaders';
createApp(App).use(createPinia()).use(router).mount('#app');
createApp(App)
.use(createPinia())
// Register the plugin before the router
.use(DataLoaderPlugin, { router })
// adding the router will trigger the initial navigation
.use(router)
.mount('#app');