@@ -87,7 +87,7 @@ function menusToRoute(menus) { | |||
} | |||
route.children.push({ | |||
path: item.path, name: item.name || item.path, meta: item.meta, | |||
component: (resolve) => require('@/views' + (item.component || item.path),resolve) | |||
component: (resolve) => require(['@/views' + (item.component || item.path)],resolve) | |||
}); | |||
} | |||
}); |