!62 【轻量级 PR】:#5071 左侧菜单,在多个菜单里引用同一个路由下的组件,通过路由去区分

Merge pull request !62 from Mac666/N/A
This commit is contained in:
lengleng 2023-08-17 01:27:31 +00:00 committed by Gitee
commit c8aeaddb43
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -133,7 +133,7 @@ export function backEndComponent(routes: any) {
}
item.path = '/iframes/' + window.btoa(item.path);
} else if (item.path) {
item.component = dynamicImport(dynamicViewsModules, item.path as string);
item.component = dynamicImport(dynamicViewsModules, item.path.split('/:')[0]);
}
item.children && backEndComponent(item.children);
if (item.children) {