flat: 暂存

This commit is contained in:
Apcallover
2025-11-24 14:33:23 +08:00
parent 6af1a5def7
commit 9f92fc47cb
7 changed files with 16 additions and 251 deletions

View File

@@ -76,8 +76,8 @@ export function createRequest(url, data = {}, method = 'GET', loading = false, h
// 响应拦截
if (resData.statusCode === 200) {
if (resData.data.encrypted) {
const decryptedData = sm4Decrypt(config
.sm4Config.key, resData.data.encryptedData)
const decryptedData = sm4Decrypt(config.sm4Config.key, resData.data
.encryptedData)
resData.data = JSON.parse(decryptedData)
}
const {
@@ -85,7 +85,6 @@ export function createRequest(url, data = {}, method = 'GET', loading = false, h
msg
} = resData.data
if (code === 200) {
console.log(resData.data)
resolve(resData.data)
return
}