flat: 暂存
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user