问题修改
This commit is contained in:
parent
a642d323c9
commit
bb60ce1440
|
|
@ -184,7 +184,8 @@ export function download(url, params, filename, config) {
|
||||||
transformRequest: [(params) => {
|
transformRequest: [(params) => {
|
||||||
return tansParams(params)
|
return tansParams(params)
|
||||||
}],
|
}],
|
||||||
headers: { 'Content-Type': 'application/x-www-form-urlencoded', encryptResponse: false},
|
// headers: { 'Content-Type': 'application/x-www-form-urlencoded', encryptResponse: false},
|
||||||
|
headers: { 'Content-Type': 'application/json', encryptResponse: false},
|
||||||
responseType: 'blob',
|
responseType: 'blob',
|
||||||
...config
|
...config
|
||||||
}).then(async(data) => {
|
}).then(async(data) => {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue