Browse Source

websocket增加信息提示

master
bianyaqi 1 year ago
parent
commit
3c12d7a08f
  1. 3
      .env.development
  2. 3
      .env.production
  3. 3
      .env.staging
  4. 5
      src/components/360View/commonForm/optometryForm.vue

3
.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'

3
.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'

3
.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'

5
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() {

Loading…
Cancel
Save