fix: 修复控制台警告

Former-commit-id: 594f3149f4d641de061637e4a961ba67b575e48c
This commit is contained in:
郝先瑞
2022-05-21 23:45:51 +08:00
parent 14d7d879a0
commit 6a72ac9b2a
4 changed files with 17 additions and 29 deletions

View File

@@ -71,12 +71,10 @@ function initChart() {
roseType: 'area',
itemStyle: {
borderRadius: 6,
normal: {
color: function (params: any) {
//自定义颜色
const colorList = ['#409EFF', '#67C23A', '#E6A23C', '#F56C6C'];
return colorList[params.dataIndex];
}
color: function (params: any) {
//自定义颜色
const colorList = ['#409EFF', '#67C23A', '#E6A23C', '#F56C6C'];
return colorList[params.dataIndex];
}
},
data: [