Ver código fonte

fix: 多图配置

hsun 8 meses atrás
pai
commit
71ea5d7c9c
1 arquivos alterados com 6 adições e 0 exclusões
  1. 6 0
      controllers/data_manage/multiple_graph_config.go

+ 6 - 0
controllers/data_manage/multiple_graph_config.go

@@ -634,6 +634,12 @@ func (this *ChartInfoController) MultipleGraphConfigSaveChart() {
 		_ = utils.Rc.Delete(cacheKey)
 	}()
 
+	if req.MultipleGraphConfigId <= 0 {
+		br.Msg = "配置未保存"
+		br.IsSendEmail = false
+		return
+	}
+
 	if req.IsSaveAs {
 		CopyMultipleGraphConfigSaveChart(req, this, br, sysUser)
 		return