Commit 54dfa809 by 夏超

[fix] 玖姿功能

parent 8b65ddf8
......@@ -1926,8 +1926,19 @@ list[item.field_index] = that.default_process_id
// 下载工艺文件
downloadUrl() {
this.document_list.forEach(item => {
console.log("URL:", item.data + '&download=true')
window.open(item.data + '&download=true')
let webulr = item.data + '&download=true'
webulr = "http://" + webulr.split("https://")[0]
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