Browse Source

change gorm

Roc 1 month ago
parent
commit
2b743d789b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      controllers/data_manage/ai_predict_model/index.go

+ 1 - 1
controllers/data_manage/ai_predict_model/index.go

@@ -860,7 +860,7 @@ func (this *AiPredictModelIndexController) DashboardSave() {
 			br.ErrMsg = fmt.Sprintf("获取标的看板失败, %v", e)
 			return
 		}
-		if item != nil {
+		if item != nil && item.AiPredictModelIndexId > 0 {
 			isUpdate = true
 			dashboardItem = item
 			dashboardItem.DashboardName = req.DashboardName