From a6da549e2c4021784f1845a82c0c539084bec189 Mon Sep 17 00:00:00 2001 From: yujk <990961482@qq.com> Date: Fri, 6 Aug 2021 11:28:00 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A1=AE=E6=9D=83=E8=B0=83=E6=9F=A5=E7=A7=BB?= =?UTF-8?q?=E5=8A=A8=E7=AB=AF=E4=B8=8A=E4=BC=A0=E7=85=A7=E7=89=87=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/index.js | 2 +- src/views/authenticRight/index.vue | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/config/index.js b/config/index.js index 7e58e1c7..6d1f905c 100644 --- a/config/index.js +++ b/config/index.js @@ -22,7 +22,7 @@ module.exports = { }, // Various Dev Server settings - host: '0.0.0.0', // can be overwritten by process.env.HOST + host: '192.168.31.228', // can be overwritten by process.env.HOST port: 85, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined autoOpenBrowser: false, errorOverlay: true, diff --git a/src/views/authenticRight/index.vue b/src/views/authenticRight/index.vue index 013006f2..1dba3959 100644 --- a/src/views/authenticRight/index.vue +++ b/src/views/authenticRight/index.vue @@ -1140,8 +1140,12 @@ i++ } this.xcdcform["lackCount"] = i - this.xcdcform.fileUrl1 = location.protocol+"//"+location.host+request.defaults.baseURL+ this.xcdcform.fileUrl1 - this.xcdcform.fileUrl2 = location.protocol+"//"+location.host+request.defaults.baseURL+ this.xcdcform.fileUrl2 + if(this.xcdcform.fileUrl1.length>0){ + this.xcdcform.fileUrl1 = location.protocol+"//"+location.host+request.defaults.baseURL+ this.xcdcform.fileUrl1.replace(location.protocol+"//"+location.host+request.defaults.baseURL,"") + + }if(this.xcdcform.fileUrl2.length>0){ + this.xcdcform.fileUrl2 = location.protocol+"//"+location.host+request.defaults.baseURL+ this.xcdcform.fileUrl2.replace(location.protocol+"//"+location.host+request.defaults.baseURL,"") + } if(this.xcdcform.id){ updateInvestigate(this.xcdcform).then(res => { this.showXCDC = false