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

多页面嵌套,开发路由怎么跳转不到 #20

Open
hzfvictory opened this issue Nov 29, 2021 · 1 comment
Open

多页面嵌套,开发路由怎么跳转不到 #20

hzfvictory opened this issue Nov 29, 2021 · 1 comment

Comments

@hzfvictory
Copy link

hzfvictory commented Nov 29, 2021

源码中 开发路由重定向:

list.push({
    from: new RegExp(`^/${pageName}/*`), // support pageName/{pages}
    to
  })

这样写法,把所有的嵌套的子级页面都给覆盖了,建议有嵌套的页面的一级路由禁止 ※

@hunteryun
Copy link

我也找了半天才发现要这样才能访问:http://localhost:3000/src/pages/subpage/nested/index.html

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

2 participants