|
|
@@ -165,7 +165,8 @@ export default {
|
|
|
},
|
|
|
//点击文件列表中已上传的文件时的钩子
|
|
|
handlePreview(file) {
|
|
|
- downloadFileById(file.id).then((response) => {
|
|
|
+ window.open(file.uploadPath, '_blank');
|
|
|
+ /*downloadFileById(file.id).then((response) => {
|
|
|
const url = window.URL.createObjectURL(new Blob([response])); // 'https://dgt.dgtis.com/oneportal/fileServer/vendor//contractFile/c6503f4c14354692b207553df8f02480.pdf';
|
|
|
window.open(url, '_blank');
|
|
|
// const link = document.createElement("a");
|
|
|
@@ -173,7 +174,7 @@ export default {
|
|
|
// link.setAttribute("download", file.newUploadName);
|
|
|
// document.body.appendChild(link);
|
|
|
// link.click();
|
|
|
- });
|
|
|
+ });*/
|
|
|
},
|
|
|
},
|
|
|
};
|