Browse Source

all

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

5
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();
@ -1195,7 +1194,7 @@ export default {
console.log(e)
const edge = items[0]; //
if (!edge) return '';
const data=items[0].data
const data = items[0].data
const sourceId = edge.source;
const targetId = edge.target;

Loading…
Cancel
Save