Browse Source

all

hanyuqing
hanyuqing 3 months ago
parent
commit
6e9c4be2f2
  1. 3
      vue/src/system/GraphDemo.vue

3
vue/src/system/GraphDemo.vue

@ -864,10 +864,10 @@ export default {
// clearTimeout
},
formatData(data) {
if (!this._graph) return;
this._graph.stopLayout();
this.clearGraphState();
// === 1. nodeId label ===
const nodeIdToEnLabel = {};
data.nodes.forEach(node => {
@ -922,7 +922,6 @@ export default {
nodes: updatedNodes,
edges: updatedEdges
};
this.buildNodeLabelMap(updatedNodes);
this.updateGraph(updatedData)
this.buildCategoryIndex();

Loading…
Cancel
Save