前端路由级别的鉴权是如何实现的? #4329
Unanswered
Emma-Alpha
asked this question in
Q&A
Replies: 5 comments 6 replies
-
我想知道有没有类似于UMi的wrapper的设计? |
Beta Was this translation helpful? Give feedback.
0 replies
-
可以我对DataLoader还没有深入了解,现在不知道怎么实现路由级别甚至组件级别的权限控制 |
Beta Was this translation helpful? Give feedback.
0 replies
-
在路由组件文件中,在组件外层包裹一个用于鉴权的组件即可。Modern.js 的路由是基于 React Router 6 实现的,所以可以参考 React Router 6 的方式对路由权限进行控制,例如这个 demo |
Beta Was this translation helpful? Give feedback.
3 replies
-
有内置的插件吗 内置的会方便一点 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Version
npx envinfo --system --browsers --npmPackages '@modern-js/*'
Details
有没有大佬能提供一下demo?
Reproduce link
无
Reproduce Steps
无
Beta Was this translation helpful? Give feedback.
All reactions