修复递归级别下无法将外层layout收起的bug

This commit is contained in:
piexlMax
2023-07-11 22:05:58 +08:00
parent b84b6c3464
commit 6cff6414c2
2 changed files with 22 additions and 12 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ const pluginModules = import.meta.glob('../plugin/**/*.vue')
export const asyncRouterHandle = (asyncRouter) => {
asyncRouter.forEach(item => {
if (item.component) {
if (item.component && typeof item.component === 'string') {
if (item.component.split('/')[0] === 'view') {
item.component = dynamicImport(viewModules, item.component)
} else if (item.component.split('/')[0] === 'plugin') {