文档想部署的时候需要登录功能才能进入文档应当如何做? #1574
-
有什么解决方案吗? |
Beta Was this translation helpful? Give feedback.
Answered by
PeachScript
Mar 23, 2023
Replies: 1 comment
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Silence-dream
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
.dumi/app.ts
里可以写运行时钩子,在钩子里做权限判定决定执行 render 还是跳转到登录系统,参考:https://umijs.org/docs/api/runtime-config#renderoldrender-function