Browse Source

webSocket

yuantianjiao 6 years ago
parent
commit
fc432dbbc7
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/pages/system/newOrder/newOrderList/index.vue

+ 1
- 1
src/pages/system/newOrder/newOrderList/index.vue View File

231
       console.log(this.user)
231
       console.log(this.user)
232
       let caseid = this.caseid
232
       let caseid = this.caseid
233
       let id = this.userInfo.UserId
233
       let id = this.userInfo.UserId
234
-      const wsuri = `${window.location.origin.replace('http', 'ws')}/api-v2/common/MQ/websocket/${caseid}/${id}`
234
+      const wsuri = `${window.location.origin.replace('http', 'ws')}/api-v2/common/MQ/websocket/${caseid}/${id}?token=${localStorage.getItem('JWT')}`
235
       // const wsuri = `ws://192.168.0.11/api/guest/MQ/websocket/${caseid}/${id}`
235
       // const wsuri = `ws://192.168.0.11/api/guest/MQ/websocket/${caseid}/${id}`
236
       try {
236
       try {
237
         this.websock = new WebSocket(wsuri)
237
         this.websock = new WebSocket(wsuri)