修复递归级别下无法将外层layout收起的bug
This commit is contained in:
@@ -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') {
|
||||
|
||||
Reference in New Issue
Block a user