소스 검색

一位数据颜色容错处理

zhuliu 1 년 전
부모
커밋
fa70242f15
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/views/analyse/custom/mixins.js

+ 1 - 1
src/views/analyse/custom/mixins.js

@@ -305,7 +305,7 @@ export const chartOption = {
         type: type,
         areaStyle: areaStyle,
         itemStyle: {
-          color: this.form.setting.config.color[0].color
+          color: this.form.setting.config.color[0]?.color
         },
         barWidth: this.form.setting.barWidth,
         label: this.getDataLabel()