mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-06-07 00:47:19 +08:00
fix: router is initialized first
This commit is contained in:
parent
feb1532549
commit
67bc933d5c
10
src/main.ts
10
src/main.ts
@ -37,14 +37,10 @@ app.component("IconifyIconOnline", IconifyIconOnline);
|
||||
app.component("FontIcon", FontIcon);
|
||||
|
||||
getServerConfig(app).then(async config => {
|
||||
app.use(router);
|
||||
await router.isReady();
|
||||
injectResponsiveStorage(app, config);
|
||||
setupStore(app);
|
||||
app
|
||||
.use(router)
|
||||
.use(MotionPlugin)
|
||||
.use(useElementPlus)
|
||||
.use(useTable)
|
||||
.use(usI18n);
|
||||
await router.isReady();
|
||||
app.use(MotionPlugin).use(useElementPlus).use(useTable).use(usI18n);
|
||||
app.mount("#app");
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user