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

!483 save the choose effect for memory in hardware resource.

Merge pull request !483 from 冯学峰/myr0.601
......@@ -329,6 +329,7 @@ export default {
pieColorArr: ['#5e7ce0', '#ccc', '#a6dd82'],
autoUpdateTimer: null, // Automatic refresh timer
isReloading: false, // Manually refresh
legendSelected: {},
};
},
computed: {
......@@ -670,6 +671,7 @@ export default {
}
return legendStr;
},
selected: this.legendSelected,
textStyle: {
rich: {
a: {
......@@ -726,6 +728,9 @@ export default {
chart.chartDom = echarts.init(cpuDom, null);
chart.chartDom.setOption(option, true);
chart.chartDom.resize();
chart.chartDom.on('legendselectchanged', (obj) => {
this.legendSelected = obj.selected;
});
}
});
},
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册