更新
All checks were successful
CI / cache-and-install (push) Successful in 1m26s

This commit is contained in:
严浩
2024-08-22 19:24:36 +08:00
parent 7e1637ccce
commit 2a78b2db01
14 changed files with 136 additions and 88 deletions

View File

@ -23,14 +23,15 @@ async function init() {
});
}
createApp(App)
const app = createApp(App)
.use(createHead())
.use(createPinia())
// Register the plugin before the router
.use(DataLoaderPlugin, { router })
// adding the router will trigger the initial navigation
.use(router)
.mount('#app');
.use(router);
app.config.globalProperties.$__DEV__ = $__DEV__;
app.mount('#app');
}
init();