#5071 左侧菜单,在多个菜单里引用同一个路由下的组件,通过路由去区分

Signed-off-by: Mac666 <support@mail.pigx.vip>
This commit is contained in:
Mac666 2023-08-16 16:40:26 +00:00 committed by Gitee
parent 2a54029f08
commit cb040e7138
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) {