This commit is contained in:
sjl
2025-01-14 11:43:35 +08:00
parent 171533cef0
commit 26cda335c5
9 changed files with 46 additions and 35 deletions

View File

@@ -36,6 +36,7 @@ export const initDynamicRouter = async () => {
// 3.添加动态路由
authStore.flatMenuListGet.forEach(item => {
item.children && delete item.children;
if (item.component && typeof item.component == "string") {
item.component = modules["/src/views" + item.component + ".vue"];
}