对接手机端
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
import { Base64 } from 'js-base64'
|
||||
import { Toast } from 'vant'
|
||||
|
||||
window._CONFIG['domianPreviewURL'] = 'http://localhost:8082/jero-boot'
|
||||
window._CONFIG['domianWebImgURL'] = 'http://localhost:8082/jero-boot'
|
||||
let downLoadFileUrl = window._CONFIG['domianPreviewURL'] + '/sys/common/download'
|
||||
let downLoadImgUrl = window._CONFIG['domianWebImgURL'] + '/sys/common/download'
|
||||
|
||||
@@ -10,7 +8,6 @@ export function kkFileView(fileName, fileId) {
|
||||
let index1 = fileName.lastIndexOf('.')
|
||||
let index2 = fileName.length
|
||||
let fileSuffix = fileName.substring(index1, index2)
|
||||
window._CONFIG['onlinePreviewDomainURL'] = 'http://localhost:8012/onlinePreview'
|
||||
if (fileSuffix == '.docx' || fileSuffix == '.doc' || fileSuffix == '.pdf' || fileSuffix == '.xlsx' || fileSuffix == '.xls') {
|
||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(downLoadFileUrl + '/' + fileId + fileSuffix)
|
||||
window.open(url)
|
||||
|
||||
Reference in New Issue
Block a user