动态路由加载的问题
Yxliam opened this issue · 2 comments
Yxliam commented
vue-router.esm.js:1897 Error: Cannot find module '@/views/system/user/index'
at webpackEmptyContext (index.js:39)
at permission.js:63
路由加载的时候出现了这个问题,动态路由的问题,我写死这个路由是可以访问的。
OneKe commented
you can open file:dokit-front\src\store\modules\permission.js
and modify method:loadView
export const loadView = (view) => { return require(
@/views/${view}).default }
X-777 commented
请教一下这个问题有解决么