perf(手机端): 预览

This commit is contained in:
zyn
2024-01-31 15:52:41 +08:00
parent 0522c15cbf
commit 5c70d779a2
2 changed files with 6 additions and 2 deletions
+3 -1
View File
@@ -3204,8 +3204,9 @@ export default {
})
},
openFileInPdf (attId, oldFileName) {
// this.$preview(attId)
this.$preview(attId)
/*
// 判断是否是图片格式,图片格式不预览,直接下载
const index1 = oldFileName.lastIndexOf('.')
const index2 = oldFileName.length
@@ -3248,6 +3249,7 @@ export default {
} else {
this.$message.warning('PDG文件,不支持手机端预览')
}
*/
},
getFileInfo (fileId) {
Axios({
+3 -1
View File
@@ -1350,8 +1350,9 @@ export default {
})
},
openFileInPdf (attId, oldFileName) {
// this.$preview(attId)
this.$preview(attId)
/*
// 判断是否是图片格式,图片格式不预览,直接下载
const index1 = oldFileName.lastIndexOf('.')
const index2 = oldFileName.length
@@ -1380,6 +1381,7 @@ export default {
}else {
this.$message.warning('PDG文件,不支持手机端预览')
}
*/
},
showItemsModel (attField) {
if (attField) {