fix: 预览修改
This commit is contained in:
@@ -39,7 +39,11 @@ async function preview (attId, type) {
|
||||
url = 'book://ssreader/e0?url=' + file.downLoadUrl
|
||||
}
|
||||
} else if (file.fileSuffix.toLowerCase() === 'pdf') {
|
||||
url = './static/pdf/web/viewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + file.id)
|
||||
let viewer = '/static/pdf/web/viewer.html?file='
|
||||
if (isMobile()) {
|
||||
viewer = '/static/pdf_old/web/viewer.html?file='
|
||||
}
|
||||
url = viewer + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + file.id)
|
||||
} else {
|
||||
// onlyoffice在线编辑文件转换为pdf预览 -> kkfileview预览乱码
|
||||
if (file.onlined && file.onlined === 1) {
|
||||
|
||||
Reference in New Issue
Block a user