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

约定式路由生成结果错误 #4236

Closed
hyunsu-git opened this issue Apr 15, 2021 · 4 comments
Closed

约定式路由生成结果错误 #4236

hyunsu-git opened this issue Apr 15, 2021 · 4 comments
Assignees
Labels

Comments

@hyunsu-git
Copy link

按照约定路由目录,会有部分路由生成错误

这是我的Pages目录结构
image

这是生成出来的路由结果
image

导致无法访问 /rabc/user/update/123456 这样路由

生成的通用路由应该在最后面

相关环境信息

  • ice.js ^1.0.0
  • **"react": "^16.4.1",
  • **"react-dom": "^16.4.1",
  • Node v15.12.0:
  • mac os 10.15:
@ClarkXia ClarkXia added the bug label Apr 15, 2021
@ClarkXia ClarkXia self-assigned this Apr 15, 2021
@ClarkXia
Copy link
Collaborator

我们修复下,官方更推荐配置式的路由

@hyunsu-git
Copy link
Author

好的 ,麻烦问答大概多久修复 ? 因为某些特别的需求 ,约定式路由 更适合我们

@hyunsu-git
Copy link
Author

刚才我在Pages目录下新增了 index.jsx 文件后,生成的路由产生了很大差异
这是我的目录
image
这是我生成的文件,部分路由被包含到了 / 的跟路由中
image
image
image
这导致排在 / 路由后的都无法访问
比如
/login
/qgc/activerecord
/rabc/user/create

@ClarkXia
Copy link
Collaborator

预计下周修复,如果感兴趣也可以给我们提 PR

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

No branches or pull requests

2 participants