|
|
@ -238,7 +238,13 @@ export default { |
|
|
|
background: "#00000052", |
|
|
|
text: "文件正在下载...", |
|
|
|
}); |
|
|
|
request.post(url, {}, { headers: { 'Content-Type': 'application/x-www-form-urlencoded' }, responseType: 'blob' }) |
|
|
|
// request.post(url, {}, { headers: { 'Content-Type': 'application/x-www-form-urlencoded' }, responseType: 'blob' }) |
|
|
|
request({ |
|
|
|
url: url,//感知事件 |
|
|
|
method: "post", |
|
|
|
data: { ...this.searchData, warningState: 1 }, |
|
|
|
responseType: 'blob' |
|
|
|
}) |
|
|
|
.then((res) => { |
|
|
|
console.log(res); |
|
|
|
const url = window.URL.createObjectURL(new Blob([res])); |
|
|
|