|
@@ -257,11 +257,10 @@ export default {
|
257
|
257
|
},
|
258
|
258
|
initWebSocket () {
|
259
|
259
|
// console.log(this.user)
|
260
|
|
- const wsPath = this.$api.system.notify.newGoodsOrders.url
|
261
|
|
- const wsRealPath = replaceURLParams(wsPath, { grps: caseid, id })
|
262
|
|
-
|
263
|
260
|
let caseid = this.caseid
|
264
|
261
|
let id = this.userInfo.UserId
|
|
262
|
+ const wsPath = this.$api.system.notify.newGoodsOrders.url
|
|
263
|
+ const wsRealPath = replaceURLParams(wsPath, { grps: caseid, id })
|
265
|
264
|
const wsuri = `${window.location.origin.replace('http', 'ws')}${wsRealPath}?token=${localStorage.getItem('JWT')}`
|
266
|
265
|
// const wsuri = `ws://192.168.0.11/api/guest/MQ/websocket/${caseid}/${id}`
|
267
|
266
|
try {
|