Merge pull request #281 from answerdev/feat/1.0.8/ui

fix: admin guard render 403
This commit is contained in:
dashuai 2023-03-24 11:00:11 +08:00 committed by GitHub
commit 9b70083dbc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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;
};