Fix: topology itemId bind (#266)
diff --git a/src/views/components/topology/chart/topo.vue b/src/views/components/topology/chart/topo.vue
index fec731e..eb281d8 100644
--- a/src/views/components/topology/chart/topo.vue
+++ b/src/views/components/topology/chart/topo.vue
@@ -131,7 +131,7 @@
update() {
// node element
const that = this;
- this.node = this.node.data(this.nodes);
+ this.node = this.node.data(this.nodes, (d) => d.id);
this.node.exit().remove();
this.node = nodeElement(d3, this.node.enter(), this.tool, {
dragstart: this.dragstart,