From 5eb708efd67798bb5b0dccd45d932b98b85462d3 Mon Sep 17 00:00:00 2001 From: zhengyiming <540361168@qq.com> Date: 星期一, 13 十月 2025 13:55:08 +0800 Subject: [PATCH] Merge branch 'dev-1.1.2' of http://120.26.58.240:8888/r/flexJobAdmin into dev-1.1.2 --- src/utils/request/index.ts | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/src/utils/request/index.ts b/src/utils/request/index.ts index e4d4068..e11bb12 100644 --- a/src/utils/request/index.ts +++ b/src/utils/request/index.ts @@ -120,6 +120,9 @@ const errorInfo: ErrorInfo | undefined = (error as any).info; if (errorInfo) { const { errorMessage, errorCode } = errorInfo; + if (Number(errorCode) === 401) { + handleLogout(); + } switch (errorInfo.showType) { case ErrorShowType.SILENT: // do nothing -- Gitblit v1.9.1