Commit ec91d9ba by wuwenlong

1

parent 2b65ffd2
...@@ -126,7 +126,8 @@ export const loadView = (view) => { ...@@ -126,7 +126,8 @@ export const loadView = (view) => {
return (resolve) => require([`@/views/${view}`], resolve) return (resolve) => require([`@/views/${view}`], resolve)
} else { } else {
// 使用 import 实现生产环境的路由懒加载 // 使用 import 实现生产环境的路由懒加载
return () => import(`@/views/${view}`) // return () => import(`@/views/${view}`)
return (resolve) => require([`@/views/${view}`], resolve)
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment