소스 검색

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)