This commit is contained in:
张成
2025-10-08 18:53:38 +08:00
parent 43eb9715fa
commit 845658f193
39 changed files with 4820 additions and 93 deletions

View File

@@ -28,12 +28,8 @@ class Http {
timeout: this.config.timeout,
headers: {},
baseURL: this.baseUrl(),
responseType: 'json',
transformResponse: [
function(data) {
return data
}
]
responseType: 'json'
// 移除 transformResponse,使用 axios 默认的 JSON 解析
}
let newConfig = Object.assign({}, defaultConfig, config)