whyczyk
2021-09-07 69f949b70f1cd2c80a9738afe602905b18e72e0b
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>