scorpio 2 years ago
parent
commit
3bcb78ab40
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/layout/top.vue

+ 1 - 1
src/layout/top.vue

@@ -172,7 +172,7 @@ export default {
     initWebSocket() {
       const wsuri =
         location.host.indexOf('dev') > -1
-          ? 'wss://dev.wutongshucloud.com/ws/websocket/'
+          ? 'wss://dev.wutongshucloud.com/ws/websocket/' + this.user.info.userId
           : config.wss + this.user.info.userId
       this.websock = new WebSocket(wsuri)
       this.websock.onmessage = this.websocketonmessage