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

动态路由 #5

Open
iwenking opened this issue Apr 25, 2024 · 4 comments
Open

动态路由 #5

iwenking opened this issue Apr 25, 2024 · 4 comments

Comments

@iwenking
Copy link

可以加上动态路由吗?

@panyushan-jade
Copy link
Owner

可以看下react-router-dom

@iwenking
Copy link
Author

我的意思是登录之后后端吧菜单的权限存入到zustand里面然后与你的路由里面的匹配有权限的才在菜单上渲染出来 而且在URL输入没有权限的页面的时候直接跳转到没有权限的页面

@panyushan-jade
Copy link
Owner

我的意思是登录之后后端吧菜单的权限存入到zustand里面然后与你的路由里面的匹配有权限的才在菜单上渲染出来 而且在URL输入没有权限的页面的时候直接跳转到没有权限的页面

每个公司权限技术不一样就没加,react-router-dom里有钩子可以做这件事

@iwenking
Copy link
Author

好的

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