Karsa 1 жил өмнө
parent
commit
aea8428a93

+ 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={}