|
|
@@ -153,7 +153,7 @@ export default {
|
|
|
const downloadUrl = window.URL.createObjectURL(new Blob([res.data]));
|
|
|
const link = document.createElement('a');
|
|
|
link.href = downloadUrl;
|
|
|
- link.setAttribute('download', '申请材料.doc');
|
|
|
+ link.setAttribute('download', res.headers['content-disposition'].split('filename=')[1]);
|
|
|
document.body.appendChild(link);
|
|
|
link.click();
|
|
|
link.remove();
|
|
|
@@ -198,7 +198,7 @@ export default {
|
|
|
const downloadUrl = window.URL.createObjectURL(new Blob([res.data]));
|
|
|
const link = document.createElement('a');
|
|
|
link.href = downloadUrl;
|
|
|
- link.setAttribute('download', res.headers['content-disposition'].split('filename=')[1]);
|
|
|
+ link.setAttribute('download', '申请材料.doc');
|
|
|
document.body.appendChild(link);
|
|
|
link.click();
|
|
|
link.remove();
|