feat: There is no way the,

This commit is contained in:
super_liu
2022-03-30 11:16:24 +08:00
parent a54b846eee
commit 3042bd1cfe
2 changed files with 12 additions and 2 deletions
@@ -1908,7 +1908,12 @@
},
// 文件预览及下载
handleFilePreview(file) {
const attId = file.response.data.id
let attId = ""
if(file && file.id){
attId = file.id
}else {
attId = file.response.data.id
}
if (this.preview) {
if (attId) {
window.location.href = '/api/att/attFile/downloadFileForSar?fileId=' + attId
@@ -2153,7 +2153,12 @@
},
// 文件预览及下载
handleFilePreview(file) {
const attId = file.response.data.id
let attId = ""
if(file && file.id){
attId = file.id
}else {
attId = file.response.data.id
}
if (this.preview) {
if (attId) {
window.location.href = '/api/att/attFile/downloadFileForSar?fileId=' + attId