瀏覽代碼

webSocket

yuantianjiao 6 年之前
父節點
當前提交
fc432dbbc7
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      src/pages/system/newOrder/newOrderList/index.vue

+ 1
- 1
src/pages/system/newOrder/newOrderList/index.vue 查看文件

@@ -231,7 +231,7 @@ export default {
231 231
       console.log(this.user)
232 232
       let caseid = this.caseid
233 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 235
       // const wsuri = `ws://192.168.0.11/api/guest/MQ/websocket/${caseid}/${id}`
236 236
       try {
237 237
         this.websock = new WebSocket(wsuri)