https://blog.csdn.net/qq_36513313/article/details/108445249
解决方法:
去ruoyi-ui/src/store/modules/permission.js
里面修改代码如下
export const loadView = (view) => { // 路由懒加载
// return () => import(@/views/${view})
return (resolve) => require([`@/views/${view}`], resolve)
}
转载请注明:有爱前端 » 使用若依前后端分离框架报Error: Cannot find module ‘@/views/xxx‘ at webpackEmptyContext (index.js:39)错