From 5c162009eee90d2594cbc879be7bb7d970ebe675 Mon Sep 17 00:00:00 2001 From: chris <1637083533@qq.com> Date: Tue, 29 Apr 2025 15:41:17 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=88=E5=B9=B6=E5=86=B2=E7=AA=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/app/infra/http/HttpClient.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/src/app/infra/http/HttpClient.ts b/web/src/app/infra/http/HttpClient.ts index 58462059..7183ba59 100644 --- a/web/src/app/infra/http/HttpClient.ts +++ b/web/src/app/infra/http/HttpClient.ts @@ -127,9 +127,9 @@ class HttpClient { const errMessage = data?.message || error.message; switch (status) { - // case 401: - // window.location.href = "/login"; - // break; + case 401: + window.location.href = "/login"; + break; case 403: console.error("Permission denied:", errMessage); break;