From af7307d704d565cfee569e62912dcc75d1bf2749 Mon Sep 17 00:00:00 2001 From: shuai Date: Fri, 24 Mar 2023 10:58:37 +0800 Subject: [PATCH] fix: admin guard render 403 --- ui/src/utils/guard.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/utils/guard.ts b/ui/src/utils/guard.ts index 280df4df..7c852986 100644 --- a/ui/src/utils/guard.ts +++ b/ui/src/utils/guard.ts @@ -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; };