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

除了预先import的页面 无法显示其他页面 #5

Open
FLZz opened this issue Nov 25, 2023 · 1 comment
Open

除了预先import的页面 无法显示其他页面 #5

FLZz opened this issue Nov 25, 2023 · 1 comment

Comments

@FLZz
Copy link

FLZz commented Nov 25, 2023

前后端都启动了,没有报错,除了预先import的页面 无法显示其他页面
怎么切换都是加载中,暂时没找到原因

@FLZz
Copy link
Author

FLZz commented Nov 25, 2023

解决了,不知道什么原因导致的生成路由那里出了问题,我把匹配的字符串改了就好了

const Component = constantRouterComponents[views/${viewPath.replace('/index.vue', '')}] || NotFound;

把这个地方给硬改成和属性一样就好了,暂时的,还不知道会出什么问题

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

1 participant