From 447baa7e298748b2104f3ac5c7a7a57a07a54632 Mon Sep 17 00:00:00 2001 From: BianLzhaoMin <11485688+bianliangzhaomin123@user.noreply.gitee.com> Date: Thu, 4 Sep 2025 13:29:00 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/request.js | 24 ++++++++++++------------ src/utils/request_formdata.js | 26 +++++++++++++------------- 2 files changed, 25 insertions(+), 25 deletions(-) diff --git a/src/utils/request.js b/src/utils/request.js index 6335669..d182e03 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -7,21 +7,21 @@ import { tansParams, blobValidate } from '@/utils/bonus' import cache from '@/plugins/cache' import { saveAs } from 'file-saver' import { decryptWithSM4, encryptWithSM4, hashWithSM3AndSalt } from '@/utils/sm' -// const systemConfig = JSON.parse(localStorage.getItem('systemConfig')) || { -// requestConfig: { -// encryptRequest: true, -// checkIntegrity: true, -// encryptResponse: true, -// }, -// } -const systemConfig = { +const systemConfig = JSON.parse(localStorage.getItem('systemConfig')) || { requestConfig: { - encryptRequest: process.env.VUE_APP_ENV === 'production' ? true : false, - checkIntegrity: process.env.VUE_APP_ENV === 'production' ? true : false, - encryptResponse: - process.env.VUE_APP_ENV === 'production' ? true : false, + encryptRequest: true, + checkIntegrity: true, + encryptResponse: true, }, } +// const systemConfig = { +// requestConfig: { +// encryptRequest: process.env.VUE_APP_ENV === 'production' ? true : false, +// checkIntegrity: process.env.VUE_APP_ENV === 'production' ? true : false, +// encryptResponse: +// process.env.VUE_APP_ENV === 'production' ? true : false, +// }, +// } let downloadLoadingInstance // 是否显示重新登录 diff --git a/src/utils/request_formdata.js b/src/utils/request_formdata.js index 693812b..983b93d 100644 --- a/src/utils/request_formdata.js +++ b/src/utils/request_formdata.js @@ -7,23 +7,23 @@ import { tansParams, blobValidate } from '@/utils/bonus' import cache from '@/plugins/cache' import { saveAs } from 'file-saver' import { decryptWithSM4, encryptWithSM4, hashWithSM3AndSalt } from '@/utils/sm' -// const systemConfig = JSON.parse(localStorage.getItem('systemConfig')) || { -// requestConfig: { -// encryptRequest: false, -// checkIntegrity: false, -// encryptResponse: false, -// }, -// } - -const systemConfig = { +const systemConfig = JSON.parse(localStorage.getItem('systemConfig')) || { requestConfig: { - encryptRequest: process.env.VUE_APP_ENV === 'production' ? true : false, - checkIntegrity: process.env.VUE_APP_ENV === 'production' ? true : false, - encryptResponse: - process.env.VUE_APP_ENV === 'production' ? true : false, + encryptRequest: false, + checkIntegrity: false, + encryptResponse: false, }, } +// const systemConfig = { +// requestConfig: { +// encryptRequest: process.env.VUE_APP_ENV === 'production' ? true : false, +// checkIntegrity: process.env.VUE_APP_ENV === 'production' ? true : false, +// encryptResponse: +// process.env.VUE_APP_ENV === 'production' ? true : false, +// }, +// } + let downloadLoadingInstance // 是否显示重新登录 export let isRelogin = { show: false }