CanadaMes-ui/src/views/Electrical/Parameter.vue
@@ -102,7 +102,7 @@ if (typeof WebSocket === "undefined") { console.log("您的浏览器不支持WebSocket"); } else { let socketUrl = "ws://" + "localhost:8888" + "/springboot-vue3/api/talk/" + viewname; let socketUrl = "ws://" + "192.168.10.21:8888" + "/springboot-vue3/api/talk/" + viewname; if (socket != null) { socket.close(); @@ -167,6 +167,9 @@ socket.onerror = function () { console.log("websocket发生了错误"); }; this.$router.afterEach(function(){ socket.close(); }) } }, send () {