From 5c48422b1117f6b466bc288b7ac5ace7d3f24516 Mon Sep 17 00:00:00 2001 From: qirong <2032486488@qq.com> Date: 星期四, 07 十二月 2023 14:26:56 +0800 Subject: [PATCH] 登录 --- dist.zip | 0 src/utils/request.ts | 6 +++--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dist.zip b/dist.zip new file mode 100644 index 0000000..f4cbf83 --- /dev/null +++ b/dist.zip Binary files differ diff --git a/src/utils/request.ts b/src/utils/request.ts index 5cd62db..c89cc52 100644 --- a/src/utils/request.ts +++ b/src/utils/request.ts @@ -53,7 +53,7 @@ config.url = url; } - if (!isRepeatSubmit && (config.method === 'post' || config.method === 'put')) { + if (!isRepeatSubmit && (config.method === 'post' || config.method === 'put' || config.method === 'get')) { const requestObj = { url: config.url, data: typeof config.data === 'object' ? JSON.stringify(config.data) : config.data, @@ -77,7 +77,7 @@ } } // 褰撳紑鍚弬鏁板姞瀵� - if (isEncrypt && (config.method === 'post' || config.method === 'put')) { + if (isEncrypt && (config.method === 'post' || config.method === 'put' || config.method === 'get')) { // 鐢熸垚涓�涓� AES 瀵嗛挜 const aesKey = generateAesKey(); config.headers['encrypt-key'] = encrypt(encryptBase64(aesKey)); @@ -126,7 +126,7 @@ ElNotification.error({ title: msg }); return Promise.reject('error'); } else { - + return Promise.resolve(res.data); } }, (error: any) => { -- Gitblit v1.8.0