解决方法:
去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)错
最新推荐文章于 2024-07-18 15:56:14 发布