From d9b4a5767e8a5f02bd1f4662ca68a0ce4dc8b9e0 Mon Sep 17 00:00:00 2001 From: wupengfei <834520024@qq.com> Date: 星期五, 08 八月 2025 14:29:29 +0800 Subject: [PATCH] Merge branch 'master' of http://120.26.58.240:8888/r/flexJobAdmin --- src/hooks/dic.ts | 1 + types/api.d.ts | 3 ++- src/utils/request/index.ts | 3 +++ 3 files changed, 6 insertions(+), 1 deletions(-) diff --git a/src/hooks/dic.ts b/src/hooks/dic.ts index 2eb60c5..87aa23b 100644 --- a/src/hooks/dic.ts +++ b/src/hooks/dic.ts @@ -167,6 +167,7 @@ parentCode: '', areaName: item.label, layer: Number(item.data?.field4), + quickQuery: item.data?.field2, sort: item.data?.sort, id: item.data?.id, } as API.AreaTreeNode; 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 diff --git a/types/api.d.ts b/types/api.d.ts index 85afbfe..c70a034 100644 --- a/types/api.d.ts +++ b/types/api.d.ts @@ -39,7 +39,8 @@ layer?: number; /** 鎺掑簭 */ sort?: number; - id?: string + id?: string; + quickQuery?: string } } -- Gitblit v1.9.1