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中,如何控制constantRouter与asyncRouter排序? #1769

Closed
JesseWeb opened this issue Mar 25, 2019 · 1 comment
Closed

关于router中,如何控制constantRouter与asyncRouter排序? #1769

JesseWeb opened this issue Mar 25, 2019 · 1 comment

Comments

@JesseWeb
Copy link

侧边栏有排序要求,发现asyncRouterMap内item会一直排在constantRouterMap的后面

@PanJiaChen
Copy link
Owner

PanJiaChen commented Mar 25, 2019

那就不要把需要排序的 item 放在 constantRouterMap不就好了。。。

你可以发现 constantRouterMap 里面都是login401404等所以权限都需要的页面,而且大部分都不会出现在侧边的。所以也谈不上什么侧边栏排序问题了。

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