From e6c3381da1ff6298f95d3f347b06ea9482e15802 Mon Sep 17 00:00:00 2001 From: lipenghui Date: Sat, 20 Jan 2024 22:14:18 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E6=94=B9=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E8=BF=94=E5=9B=9E=E6=95=B0=E6=8D=AE=E5=8A=A0=E5=AF=86=E5=88=A4?= =?UTF-8?q?=E6=96=AD=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/axios/index.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/utils/axios/index.ts b/src/utils/axios/index.ts index 0d11e5f..cd48f4c 100644 --- a/src/utils/axios/index.ts +++ b/src/utils/axios/index.ts @@ -36,11 +36,7 @@ const transform: AxiosTransform = { const newRes = cloneDeep(res) let newData: Result - if (strHasArr(res.config.url!, notDecryptWhiteList)) { - newData = newRes.data - } - - if (import.meta.env.VITE_GLOB_APP_TOKEN_SCHEME) { + if (import.meta.env.VITE_GLOB_APP_TOKEN_SCHEME && !strHasArr(res.config.url!, notDecryptWhiteList)) { newData = JSON.parse(crypto.decryptAES(newRes.data as unknown as string, crypto.aesKey)) } else {