mirror of https://gitee.com/answerdev/answer.git
Merge pull request #281 from answerdev/feat/1.0.8/ui
fix: admin guard render 403
This commit is contained in:
commit
9b70083dbc
|
@ -174,7 +174,7 @@ export const admin = () => {
|
|||
const us = deriveLoginState();
|
||||
if (gr.ok && !us.isAdmin) {
|
||||
gr.ok = false;
|
||||
gr.redirect = RouteAlias.home;
|
||||
gr.redirect = '';
|
||||
}
|
||||
return gr;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue