src/pages/home/topoGraph.vue
@@ -819,7 +819,14 @@ } }, mounted() { // this.$socket.initWebSocket("/device", "") // this.$socket.sendSock(null, (res) => { // console.log(res) // }); this.searchAll() setInterval(() => { this.searchAll() }, 2000) diagram = gridCircuitDiagram(this.$refs.static, this.$refs.flush); this.setPanelPos(); window.addEventListener('resize', () => { @@ -885,6 +892,7 @@ }, destroyed() { diagram.stop(); // this.$socket.close(); } } </script>