提交 78edb521 编写于 作者: M mindspore-ci-bot 提交者: Gitee

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

Merge pull request !430 from 黄伟锋/master
......@@ -2029,9 +2029,13 @@ export default {
selectedNode.type === 'name_scope' ||
selectedNode.type === 'aggregation_scope';
this.selectedNode.count = selectedNode.subnode_count;
this.selectedNode.info.attributes = JSON.parse(
JSON.stringify(selectedNode.attr),
);
const attrTemp = JSON.parse(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) => {
const value = this.getEdgeLabel(selectedNode.input[key]);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册