feat: 模拟后台返回不同角色路由生成动态路由

This commit is contained in:
xiaoxian521
2021-05-27 23:36:46 +08:00
parent b554356ba1
commit 07aff1fcfc
22 changed files with 297 additions and 92 deletions

View File

@@ -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");
});