提交 1c4ec5e0 编写于 作者: W WeiFeng-mindinsight

fix graph bug that attributes of selected node show empty in content area

上级 9a63a44d
...@@ -2029,9 +2029,13 @@ export default { ...@@ -2029,9 +2029,13 @@ export default {
selectedNode.type === 'name_scope' || selectedNode.type === 'name_scope' ||
selectedNode.type === 'aggregation_scope'; selectedNode.type === 'aggregation_scope';
this.selectedNode.count = selectedNode.subnode_count; this.selectedNode.count = selectedNode.subnode_count;
this.selectedNode.info.attributes = JSON.parse( const attrTemp = JSON.parse(JSON.stringify(selectedNode.attr || {}));
JSON.stringify(selectedNode.attr), this.selectedNode.info.attributes = Object.keys(attrTemp).map((key) => {
); return {
name: key,
value: attrTemp[key],
};
});
Object.keys(selectedNode.input).forEach((key) => { Object.keys(selectedNode.input).forEach((key) => {
const value = this.getEdgeLabel(selectedNode.input[key]); const value = this.getEdgeLabel(selectedNode.input[key]);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册