qymljy hai 7 meses
pai
achega
35f0330367
Modificáronse 1 ficheiros con 5 adicións e 4 borrados
  1. 5 4
      src/components/socketMessage/index.vue

+ 5 - 4
src/components/socketMessage/index.vue

@@ -20,7 +20,7 @@
       return {
         id:'',
         /*path:"ws://61.164.207.46:8000//yos/webSocket/",*/
-        path:"ws://61.164.207.46:8001/yos/webSocket/",
+        path:"wss://oms.idcgroup.com.cn:8079/yos/webSocket/",
         panelIsShow:false,
         list:[],
         total:0,
@@ -28,9 +28,10 @@
     },
     created () {
       let token = JSON.parse(sessionStorage.getItem('active_account')).token
-      let href =location.href.substring(0,5)
-      console.log(href,'href')
-      href === 'https'?this.path = "wss://oms.idcgroup.com.cn:8079/yos/webSocket/":this.path = "ws://61.164.207.46:8000//yos/webSocket/"
+     /* let href =location.href.substring(0,5)
+      console.log(href,'href')*/
+      // 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
       console.log(this.path)
     },