Browse Source

获取图表主题

xyxie 7 months ago
parent
commit
a4014ac604
1 changed files with 1 additions and 1 deletions
  1. 1 1
      controllers/data_manage/range_analysis/chart_info.go

+ 1 - 1
controllers/data_manage/range_analysis/chart_info.go

@@ -318,7 +318,7 @@ func (this *RangeChartChartInfoController) Detail() {
 		startYear = chartInfo.StartYear
 	}
 	// 获取主题样式
-	chartTheme, err := data.GetChartThemeConfig(chartInfo.ChartThemeId, utils.CHART_SOURCE_DEFAULT, 1)
+	chartTheme, err := data.GetChartThemeConfig(chartInfo.ChartThemeId, utils.CHART_SOURCE_DEFAULT, chartInfo.ChartType)
 	if err != nil {
 		br.Msg = "获取失败"
 		br.ErrMsg = "获取主题信息失败,Err:" + err.Error()