Commit e020ac35 by 夏超

[fix] 玖姿功能

parent 411429af
...@@ -1926,18 +1926,7 @@ list[item.field_index] = that.default_process_id ...@@ -1926,18 +1926,7 @@ list[item.field_index] = that.default_process_id
// 下载工艺文件 // 下载工艺文件
downloadUrl() { downloadUrl() {
this.document_list.forEach(item => { this.document_list.forEach(item => {
let webulr = item.data + '&download=true' window.open(item.data + '&download=true')
fetch(webulr)
.then((res) => res.blob())
.then((blob) => {
const a = document.createElement("a");
const objUrl = URL.createObjectURL(blob);
a.download = item.name;
a.href = objUrl;
a.click();
window.URL.revokeObjectURL(objUrl);
a.remove();
})
}) })
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment