mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-06-07 17:07:19 +08:00
perf: 页面初始化时先加载pinia
再加载router
,兼容更多使用场景 (#649)
This commit is contained in:
parent
3afafa6f61
commit
d27c0623c5
@ -46,10 +46,10 @@ import { Auth } from "@/components/ReAuth";
|
|||||||
app.component("Auth", Auth);
|
app.component("Auth", Auth);
|
||||||
|
|
||||||
getServerConfig(app).then(async config => {
|
getServerConfig(app).then(async config => {
|
||||||
|
setupStore(app);
|
||||||
app.use(router);
|
app.use(router);
|
||||||
await router.isReady();
|
await router.isReady();
|
||||||
injectResponsiveStorage(app, config);
|
injectResponsiveStorage(app, config);
|
||||||
setupStore(app);
|
|
||||||
app
|
app
|
||||||
.use(MotionPlugin)
|
.use(MotionPlugin)
|
||||||
.use(useI18n)
|
.use(useI18n)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user