From 2e50f8ca3c325213509a2957162ea024a433b8ff Mon Sep 17 00:00:00 2001 From: kongwy229 <1419906205@qq.com> Date: Fri, 24 Feb 2023 21:34:48 +0800 Subject: [PATCH] fix login bug --- web/src/utils/request.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/utils/request.ts b/web/src/utils/request.ts index 582c9632a4..099b0645c7 100644 --- a/web/src/utils/request.ts +++ b/web/src/utils/request.ts @@ -50,7 +50,7 @@ request.interceptors.response.use( const { data } = error.response; if (data.statusCode === 401) { // eslint-disable-next-line no-restricted-globals - // (window as any).location.href = (import.meta.env.VITE_SERVER_URL + "/v1/login") as string; + (window as any).location.href = (import.meta.env.VITE_SERVER_URL + "/v1/login") as string; return; } else if (data.statusCode === 403) { (window as any).location.href = "/403";