1
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user