Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

动态路由加载的问题 #10

Open
Yxliam opened this issue May 4, 2020 · 2 comments
Open

动态路由加载的问题 #10

Yxliam opened this issue May 4, 2020 · 2 comments

Comments

@Yxliam
Copy link

Yxliam commented May 4, 2020

vue-router.esm.js:1897 Error: Cannot find module '@/views/system/user/index'
at webpackEmptyContext (index.js:39)
at permission.js:63
路由加载的时候出现了这个问题,动态路由的问题,我写死这个路由是可以访问的。

@OneKe
Copy link

OneKe commented May 29, 2020

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
Copy link

X-777 commented Aug 8, 2021

请教一下这个问题有解决么

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants