瀏覽代碼

消息提醒弹框调整

qymljy 8 月之前
父節點
當前提交
552f8f283b
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/components/socketMessage/index.vue

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

@@ -28,7 +28,8 @@
     },
     created () {
       let token = JSON.parse(sessionStorage.getItem('active_account')).token
-      let href =location.href.substring(0,4)
+      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)