Skip to content

文档想部署的时候需要登录功能才能进入文档应当如何做? #1574

Closed Answered by PeachScript
Silence-dream asked this question in Q&A
Discussion options

You must be logged in to vote

.dumi/app.ts 里可以写运行时钩子,在钩子里做权限判定决定执行 render 还是跳转到登录系统,参考:https://umijs.org/docs/api/runtime-config#renderoldrender-function

Replies: 1 comment

Comment options

You must be logged in to vote
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
Category
Q&A
Labels
None yet
2 participants