|
@@ -494,8 +494,13 @@ export default {
|
|
|
handleShowClick() {
|
|
|
this.option.isEdit = false
|
|
|
this.option.lang = 'zh-CN'
|
|
|
+ let baseUrl = api.url0
|
|
|
+ if(location.href.indexOf('10.5.100.101')>-1){
|
|
|
+ baseUrl = api.url1
|
|
|
+ }
|
|
|
+ this.option.url = baseUrl+'/api/api-system/system/core/sysFile/previewFile?fileId='+this.knowledgeForm.attachment
|
|
|
// this.option.url = 'http://10.5.100.64:9900/api-system/system/core/sysFile/previewFile?fileId=1597050108435845121'
|
|
|
- this.option.url = 'http://10.5.100.101/:8088/api/api-system/system/core/sysFile/previewFile?fileId='+ this.knowledgeForm.attachment,
|
|
|
+ //this.option.url = 'http://10.5.100.101/:8088/api/api-system/system/core/sysFile/previewFile?fileId='+ this.knowledgeForm.attachment,
|
|
|
this.option.title = this.knowledgeForm.attachmentName
|
|
|
this.option.fileType = this.knowledgeForm.attachmentName.split('.').slice(-1)[0]
|
|
|
this.option.isPrint = false
|