fix(手机端详情): 统一预览方式

This commit is contained in:
zyn
2023-12-20 10:34:15 +08:00
parent 456875cc34
commit 172f013ce9
3 changed files with 12 additions and 1 deletions
+3
View File
@@ -2836,6 +2836,8 @@
})
},
openFileInPdf(attId, oldFileName) {
this.$preview(attId)
/*
// 判断是否是图片格式,图片格式不预览,直接下载
let index1 = oldFileName.lastIndexOf('.')
let index2 = oldFileName.length
@@ -2878,6 +2880,7 @@
} else {
this.$message.warning('PDG文件,不支持手机端预览')
}
*/
},
getFileInfo(fileId) {
Axios({
+3
View File
@@ -1269,6 +1269,8 @@
})
},
openFileInPdf(attId, oldFileName) {
this.$preview(attId)
/*
// 判断是否是图片格式,图片格式不预览,直接下载
let index1 = oldFileName.lastIndexOf('.')
let index2 = oldFileName.length
@@ -1298,6 +1300,7 @@
}else {
this.$message.warning('PDG文件,不支持手机端预览')
}
*/
},
showItemsModel(attField) {
if (attField) {