路由嵌套情况下保证无边框功能可用

This commit is contained in:
piexlMax
2023-07-11 22:24:47 +08:00
parent 6cff6414c2
commit 784dca2baa
2 changed files with 4 additions and 16 deletions

View File

@@ -9,8 +9,6 @@ export const asyncRouterHandle = (asyncRouter) => {
} else if (item.component.split('/')[0] === 'plugin') {
item.component = dynamicImport(pluginModules, item.component)
}
} else {
delete item['component']
}
if (item.children) {
asyncRouterHandle(item.children)