diff --git a/src/store/modules/permission.js b/src/store/modules/permission.js index 28ea9aa..c70396a 100644 --- a/src/store/modules/permission.js +++ b/src/store/modules/permission.js @@ -127,7 +127,7 @@ export const loadView = (view) => { return (resolve) => require([`@/views/${view}`], resolve) } else { // 使用 import 实现生产环境的路由懒加载 - return () => import(`@/views/${view}`) + return (resolve) => require([`@/views/${view}`], resolve) } }