diff --git a/src/components/jeecg/FileList.vue b/src/components/jeecg/FileList.vue index 013677e..e8adb3e 100644 --- a/src/components/jeecg/FileList.vue +++ b/src/components/jeecg/FileList.vue @@ -337,8 +337,9 @@ var urlPath = file.url var group = file.groups var that = this - let base = "http://182.92.73.21:8012/onlinePreview?url=" - let url = base+encodeURIComponent(this.$Base64.encode(file.url)) + let base = window._CONFIG['onlinePreviewDomainURL'] + console.log(base,"????????????????????????????") + let url = window._CONFIG['onlinePreviewDomainURL']+encodeURIComponent(this.$Base64.encode(file.url)) window.open(url, '_blank') }, handleCancel() { diff --git a/src/components/jeecg/JUpload.vue b/src/components/jeecg/JUpload.vue index c7115d1..42c0559 100644 --- a/src/components/jeecg/JUpload.vue +++ b/src/components/jeecg/JUpload.vue @@ -321,8 +321,9 @@ this.previewVisible = true; }else if (file.url) { // 此base地址可以配置到一个常量文件里 - let base = "http://182.92.73.21:8012/onlinePreview?url=" - let url = base+encodeURIComponent(this.$Base64.encode(file.url)) + //let base = "http://182.92.73.21:8012/onlinePreview?url=" + console.log(window._CONFIG['onlinePreviewDomainURL'],"//////////////////////////????") + let url = window._CONFIG['onlinePreviewDomainURL']+encodeURIComponent(this.$Base64.encode(file.url)) window.open(url, '_blank') } }, diff --git a/src/views/modules/oss/OSSFileList.vue b/src/views/modules/oss/OSSFileList.vue index a5fea5a..93893dd 100644 --- a/src/views/modules/oss/OSSFileList.vue +++ b/src/views/modules/oss/OSSFileList.vue @@ -241,7 +241,7 @@ }, handlePreview(record) { if (record && record.url) { - let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + encodeURIComponent(record.url) + let url = window._CONFIG['onlinePreviewDomainURL']+encodeURIComponent(this.$Base64.encode(record.url)) window.open(url, '_blank') } },