浏览代码

Merge branch 'greenUrgent' into allTestUrgent

qymljy 1 年之前
父节点
当前提交
00fdd80b9d
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/components/socketMessage/index.vue

+ 2 - 0
src/components/socketMessage/index.vue

@@ -28,6 +28,8 @@
     },
     },
     created () {
     created () {
       let token = JSON.parse(sessionStorage.getItem('active_account')).token
       let token = JSON.parse(sessionStorage.getItem('active_account')).token
+      let href =location.href.substring(0,4)
+      href === 'https'?this.path = "wss://oms.idcgroup.com.cn:8079/yos/webSocket/":this.path = "ws://61.164.207.46:8000//yos/webSocket/"
       this.path = this.path + token
       this.path = this.path + token
       console.log(this.path)
       console.log(this.path)
     },
     },