From 4b5ac6ad03604f523f58ace02cf16d12fdc2f1be Mon Sep 17 00:00:00 2001 From: Chris <1637083533@qq.com> Date: Mon, 28 Apr 2025 23:14:35 +0800 Subject: [PATCH] http --- 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 192566a0..a8bb53cc 100644 --- a/web/src/app/infra/http/HttpClient.ts +++ b/web/src/app/infra/http/HttpClient.ts @@ -129,9 +129,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;