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

菜单或者目录路径命名重复导致vue-router路由出现404问题 #49

Closed
pei-han opened this issue Jan 22, 2024 · 1 comment
Closed

Comments

@pei-han
Copy link

pei-han commented Jan 22, 2024

菜单或者目录路径命名重复,直接导致路由name重复,在代码中使用了named route情况下,这种重复导致后面的相同name的路由覆盖之前的路由,最终出现出现404问题(菜单路径重复)
还会导致点击目录展开错误问题(目录路径重复)

@yangzongzhuan
Copy link
Owner

yangzongzhuan commented Sep 2, 2024

这个主要是发生在vue3版本中,因为vue3-router不支持重名,所以在Cloud新版本新增了路由名称,可以在菜单管理自定义路由名称。

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