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

Bug: 当使用后台路由时,同一生命周期会提示重复路由 #5496

Closed
5 tasks done
hivee opened this issue Feb 7, 2025 · 1 comment
Closed
5 tasks done

Comments

@hivee
Copy link

hivee commented Feb 7, 2025

Version

Vben Admin V5

Describe the bug?

Error: A route named "dashboard" has been added as a child of a route with the same name. Route names must be unique and a nested route cannot use the same name as an ancestor.

Reproduction

Error: A route named "dashboard" has been added as a child of a route with the same name. Route names must be unique and a nested route cannot use the same name as an ancestor.

System Info

Error: A route named "dashboard" has been added as a child of a route with the same name. Route names must be unique and a nested route cannot use the same name as an ancestor.

Relevant log output

Validations

@mynetfan
Copy link
Collaborator

mynetfan commented Feb 7, 2025

后端路由时,不要返回path为/的路由,这个路由已经被注册为基础布局路由。你需要修改后端name为dashboard的路由,将path修改为/dashboard或者其它

@mynetfan mynetfan closed this as completed Feb 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants