diff --git a/src/main.ts b/src/main.ts index efe7d8df9..a4d735cb6 100644 --- a/src/main.ts +++ b/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"); });