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

关于router.config.js的问题,因项目要求,需要在path中加前缀,加完前缀后... #3338

Closed
johanazhu opened this issue Sep 29, 2019 · 2 comments

Comments

@johanazhu
Copy link

What happens?

在router.config.js中配置参数,现在要加个前缀后,进入页面的时候说找不到此页面。
还发现一个问题,如果把多级路由(父路由(假设A)下有好多子路由(A/detail,A/info)放在config写法的上面时,其他与A同级的页面就访问不到,如果把这些没有子路由的与A同级的父路由放在上面,那么能访问到。
ps: 准确来说还有个爷爷路由(根路由)
因为嵌套太深copy第三层的时候出错了,一个猜测,不一定对

复现步骤,错误日志以及相关配置

image
(原来的)
image
(现在的)
image(错误提示)

相关环境信息

  • Umi 版本:^2.9.0
  • Node 版本: 10.15.3
  • 操作系统: window
@johanazhu
Copy link
Author

前缀为 allwin

@johanazhu
Copy link
Author

path问题,path没加

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