diff --git a/routers/repo/ai_model_manage.go b/routers/repo/ai_model_manage.go index 957028fc6..6aec541e3 100644 --- a/routers/repo/ai_model_manage.go +++ b/routers/repo/ai_model_manage.go @@ -639,6 +639,7 @@ func ShowSingleModel(ctx *context.Context) { if value != nil { model.UserName = value.Name model.UserRelAvatarLink = value.RelAvatarLink() + model.TrainTaskInfo = "" } } ctx.JSON(http.StatusOK, models) @@ -787,6 +788,7 @@ func ShowModelPageInfo(ctx *context.Context) { for i, model := range modelResult { model.IsCanOper = isOper(ctx, model.UserId) model.IsCanDelete = isCanDelete(ctx, model.UserId) + model.TrainTaskInfo = "" userIds[i] = model.UserId }