如何为 umijs 编写插件?
#11745
Replies: 1 comment 6 replies
-
如果是简单的路由权限校验,可以直接给应用 layout 套一层 auth context ,在这里面校验用户有没有这个路由的权限就可以。如果需要动态路由表,需要使用 |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
您好,我们有一个在数据库中保存路由和组件的结构。当用户访问路由时,我们会从数据库中提取该路由的组件的凭据,并决定是否进行渲染。我们想针对这种情况编写一个插件。我们该怎么做呢?
Beta Was this translation helpful? Give feedback.
All reactions