yuantianjiao 6 lat temu
rodzic
commit
01406bd4e2
1 zmienionych plików z 1 dodań i 0 usunięć
  1. 1
    0
      src/pages/system/newOrder/newOrderList/index.vue

+ 1
- 0
src/pages/system/newOrder/newOrderList/index.vue Wyświetl plik

@@ -313,6 +313,7 @@ export default {
313 313
         this.websockets[wsRealPath].onopen = console.log
314 314
         this.websockets[wsRealPath].onmessage = this.websocketonmessage
315 315
         this.websockets[wsRealPath].onclose = this.reloadWebSocket
316
+        this.websockets[wsRealPath].onerror = this.reloadWebSocket
316 317
         this.websockets[wsRealPath].interval = setInterval(() => this.websockets[wsRealPath].send(10), 120000)
317 318
       }
318 319
     },