perf: 同步完整版分支代码

This commit is contained in:
xiaoxian521
2021-12-21 10:54:51 +08:00
parent ebba7bc821
commit 6b96aca136
11 changed files with 197 additions and 20 deletions

View File

@@ -216,11 +216,7 @@ const addAsyncRoutes = (arrRoutes: Array<RouteRecordRaw>) => {
if (v.redirect) {
v.component = Layout;
} else {
if (v.meta.realPath) {
v.component = modulesRoutes[`/src/views${v.meta.realPath}/index.vue`];
} else {
v.component = modulesRoutes[`/src/views${v.path}/index.vue`];
}
v.component = modulesRoutes[`/src/views${v.path}/index.vue`];
}
if (v.children) {
addAsyncRoutes(v.children);