Explorar o código

颜色倒一下

Karsa hai 1 ano
pai
achega
aea8428a93
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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={}