diff --git a/src/router/backEnd.ts b/src/router/backEnd.ts index 109cfe7c..19142e4f 100644 --- a/src/router/backEnd.ts +++ b/src/router/backEnd.ts @@ -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) {