|
|
|
@ -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(); |
|
|
|
|