使用若依前后端分离框架报Error: Cannot find module ‘@/views/xxx‘ at webpackEmptyContext (index.js:39)错

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)
}
THE END
分享
二维码
打赏
< <上一篇
下一篇>>