Browse Source

信息弹框

qymljy 1 year ago
parent
commit
b2ffcafb0a
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/components/socketMessage/index.vue

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

@@ -28,6 +28,8 @@
     },
     created () {
       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
       console.log(this.path)
     },