mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2026-01-20 16:53:37 +08:00
feat: 模拟后台返回不同角色路由生成动态路由
This commit is contained in:
14
src/main.ts
14
src/main.ts
@@ -49,12 +49,10 @@ export const getServerConfig = async (): Promise<any> => {
|
||||
});
|
||||
};
|
||||
|
||||
getServerConfig().then(() => {
|
||||
app
|
||||
.use(router)
|
||||
.use(store)
|
||||
.use(useElementPlus)
|
||||
.use(useTable)
|
||||
.use(usI18n)
|
||||
.mount("#app");
|
||||
getServerConfig().then(async () => {
|
||||
app.use(router).use(store).use(useElementPlus).use(useTable).use(usI18n);
|
||||
|
||||
await router.isReady();
|
||||
|
||||
app.mount("#app");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user