ios适配
This commit is contained in:
@@ -2803,17 +2803,17 @@
|
||||
const nowTime = new Date().getTime()
|
||||
this.loadingText = true
|
||||
if (editFileInfo.fileSuffix.toLowerCase() === 'pdf') {
|
||||
if (/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)) {
|
||||
//alert(navigator.userAgent);
|
||||
this.getFileInfo(editFileInfo.id)
|
||||
} else if (/(Android)/i.test(navigator.userAgent)) {
|
||||
//alert(navigator.userAgent);
|
||||
// if (/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)) {
|
||||
// //alert(navigator.userAgent);
|
||||
// this.getFileInfo(editFileInfo.id)
|
||||
// } else if (/(Android)/i.test(navigator.userAgent)) {
|
||||
// //alert(navigator.userAgent);
|
||||
// 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))
|
||||
} else {
|
||||
this.loadingText = false
|
||||
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()
|
||||
|
||||
Reference in New Issue
Block a user