修改图片预览

This commit is contained in:
gaosong
2024-01-08 16:22:50 +08:00
parent caf1ab94ba
commit a904ae1b19
6 changed files with 21 additions and 8 deletions
@@ -76,6 +76,7 @@
let index1 = fileName.lastIndexOf('.')
let index2 = fileName.length
let fileSuffix = fileName.substring(index1, index2)
fileSuffix = fileSuffix.toLowerCase()
if (fileSuffix == '.pdf') {
window.open('/pdf/web/viewer.html?file=' + encodeURIComponent('/jero-boot/sys/common/pdf/viewFile?id=' + fileQuery.id+'&userName='+this.userInfo().username))
} else if (fileSuffix == '.docx' || fileSuffix == '.doc') {
@@ -105,7 +106,7 @@
let index1 = fileName.lastIndexOf('.')
let index2 = fileName.length
let fileSuffix = fileName.substring(index1, index2)
val.fileSuffix = fileSuffix
val.fileSuffix = fileSuffix.toLowerCase()
})
this.loading = false
} else {