Merge remote-tracking branch 'origin/dev_20230216' into dev_20230216
This commit is contained in:
@@ -2801,7 +2801,7 @@
|
||||
if (res) {
|
||||
const editFileInfo = res
|
||||
const nowTime = new Date().getTime()
|
||||
this.loadingText = true
|
||||
// this.loadingText = true
|
||||
if (editFileInfo.fileSuffix.toLowerCase() === 'pdf') {
|
||||
// if (/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)) {
|
||||
// //alert(navigator.userAgent);
|
||||
@@ -2811,15 +2811,15 @@
|
||||
// this.loadingText = false
|
||||
// window.open('/static/pdf/web/viewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + editFileInfo.id))
|
||||
// } else {
|
||||
this.loadingText = false
|
||||
window.open('/static/pdf/web/viewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + editFileInfo.id))
|
||||
// this.loadingText = false
|
||||
window.open(kkFileViewUrl + '/onlinePreview?url=' + encodeURIComponent(Base64.encode(editFileInfo.downLoadUrl)));
|
||||
// window.open('/static/pdf/web/viewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + editFileInfo.id))
|
||||
// }
|
||||
// window.open('/#/phonePDF?fileId='+editFileInfo.id)
|
||||
} else {
|
||||
const nowTime = new Date().getTime()
|
||||
// window.open(onlyOfficeUrl+'/onlyOffice?oldFileName=' + editFileInfo.oldFileName + '&fileType=' + editFileInfo.fileSuffix + '&attId=' + editFileInfo.id + '&fileUrl=' + editFileInfo.downLoadUrl + '&key=' + editFileInfo.id + nowTime+'&filePath='+editFileInfo.filePath+'&fileName='+editFileInfo.fileName)
|
||||
window.open(kkFileViewUrl + '/onlinePreview?url=' + encodeURIComponent(Base64.encode(editFileInfo.downLoadUrl)));
|
||||
|
||||
}
|
||||
}
|
||||
}).catch(e => {
|
||||
|
||||
Reference in New Issue
Block a user