Explorar o código

fix: 多图配置

hsun hai 8 meses
pai
achega
71ea5d7c9c
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  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