若依前后分离 Error: Cannot find module ‘@/views/system/user/index‘ at webpackEmptyContext (index.js:39
问题: 若依分离版下前端路由切换不了在 /src/store/modules/permission.js把 return () => import(@/views/${view}) 改成下面内容export const loadView = (view) => { // 路由懒加载return (resolve) => require([`@/views/${view}`], r
·
问题: 若依分离版下前端路由切换不了
在 /src/store/modules/permission.js
把 return () => import(@/views/${view}
) 改成下面内容
export const loadView = (view) => { // 路由懒加载
return (resolve) => require([`@/views/${view}`], resolve)
}
更多推荐
已为社区贡献2条内容
所有评论(0)