diff --git a/.env.development b/.env.development index f2222dc..150a2db 100644 --- a/.env.development +++ b/.env.development @@ -6,3 +6,6 @@ VUE_APP_LOGIN_URL='http://47.110.224.240:8036/xiangan-crf' # pacs浏览器 VUE_APP_PACS_URL='http://192.168.0.85:8001' # VUE_APP_PACS_URL='http://z1.huimucloud.com:8085' + +# websocket地址 +VUE_APP_WS_URL='ws://192.168.0.119:8036/xiangan-crf/websocket/2017710013' diff --git a/.env.production b/.env.production index d784641..b50653d 100644 --- a/.env.production +++ b/.env.production @@ -7,3 +7,6 @@ VUE_APP_LOGIN_URL='http://10.80.5.32:8031/xiangan-crf' # pacs浏览器 VUE_APP_PACS_URL='http://10.80.5.32:8026' # VUE_APP_PACS_URL='http://z1.huimucloud.com:8085' + +# websocket地址 +VUE_APP_WS_URL='ws://127.0.0.1:8030/data' diff --git a/.env.staging b/.env.staging index e0347dc..f062419 100644 --- a/.env.staging +++ b/.env.staging @@ -6,3 +6,6 @@ VUE_APP_LOGIN_URL='http://47.110.224.240:8036/xiangan-crf' # pacs浏览器 VUE_APP_PACS_URL='http://192.168.0.85:8001' # VUE_APP_PACS_URL='http://z1.huimucloud.com:8085' + +# websocket地址 +VUE_APP_WS_URL='ws://192.168.0.119:8036/xiangan-crf/websocket/2017710013' diff --git a/src/components/360View/commonForm/optometryForm.vue b/src/components/360View/commonForm/optometryForm.vue index cff713d..f0224d7 100644 --- a/src/components/360View/commonForm/optometryForm.vue +++ b/src/components/360View/commonForm/optometryForm.vue @@ -758,11 +758,8 @@ export default { }, self.timeout) }, initWebSoket() { - // wss://127.0.0.1:8030/data - // const url = 'ws://47.110.224.240:8036/xiangan-crf/websocket/0071' - const url = 'ws://192.168.0.119:8036/xiangan-crf/websocket/2017710013' try { - // const url = 'ws://127.0.0.1:8030/data' + const url = process.env.VUE_APP_WS_URL const self = this this.ws = new WebSocket(url) this.ws.onopen = function() {