mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-06-07 17:07: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);
|
app.component("FontIcon", FontIcon);
|
||||||
|
|
||||||
getServerConfig(app).then(async config => {
|
getServerConfig(app).then(async config => {
|
||||||
|
app.use(router);
|
||||||
|
await router.isReady();
|
||||||
injectResponsiveStorage(app, config);
|
injectResponsiveStorage(app, config);
|
||||||
setupStore(app);
|
setupStore(app);
|
||||||
app
|
app.use(MotionPlugin).use(useElementPlus).use(useTable).use(usI18n);
|
||||||
.use(router)
|
|
||||||
.use(MotionPlugin)
|
|
||||||
.use(useElementPlus)
|
|
||||||
.use(useTable)
|
|
||||||
.use(usI18n);
|
|
||||||
await router.isReady();
|
|
||||||
app.mount("#app");
|
app.mount("#app");
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user