浏览代码

颜色倒一下

Karsa 1 年之前
父节点
当前提交
aea8428a93
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/views/hzyb/chart/Detail.vue

+ 1 - 1
src/views/hzyb/chart/Detail.vue

@@ -1696,7 +1696,7 @@ const setSeasonOpt=(data)=>{
     /* 主题样式*/
     const chartTheme =  resData.value.ChartInfo.ChartThemeStyle ? JSON.parse(resData.value.ChartInfo.ChartThemeStyle) : null;
 
-    const colorsArr=chartTheme.colorsOptions;
+    const colorsArr=chartTheme&&chartTheme.colorsOptions.reverse();
     let series=[],yAxis=[]
     //农历默认选中一年数据并隐藏按钮  公历显示全部数据
     // let rangeSelector={}