Browse Source

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

Merge pull request !430 from 黄伟锋/master
tags/v0.6.0-beta
mindspore-ci-bot Gitee 5 years ago
parent
commit
78edb521ef
1 changed files with 7 additions and 3 deletions
  1. +7
    -3
      mindinsight/ui/src/views/train-manage/graph.vue

+ 7
- 3
mindinsight/ui/src/views/train-manage/graph.vue View File

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


Loading…
Cancel
Save