fix:修改新增图表 每次的随机色都是一样的问题
This commit is contained in:
@@ -361,6 +361,7 @@ export default {
|
||||
/* 图表相关操作--start */
|
||||
addChart () {
|
||||
this.chart = this.newChart()
|
||||
this.chart.param.thresholds = [{ value: undefined, color: randomcolor() }]
|
||||
this.chart.panelId = this.showPanel.id
|
||||
this.chart.panelName = this.showPanel.name
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user