From 38893547f600b9042133120d489849062aa84f3a Mon Sep 17 00:00:00 2001 From: zouap Date: Thu, 2 Jun 2022 10:18:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A8=A1=E5=9E=8B=E8=BD=AC=E6=8D=A2=E7=95=8C?= =?UTF-8?q?=E9=9D=A2=E4=BA=A4=E4=BA=92=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zouap --- routers/repo/ai_model_manage.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/routers/repo/ai_model_manage.go b/routers/repo/ai_model_manage.go index 277dcbcc3..8b1c05348 100644 --- a/routers/repo/ai_model_manage.go +++ b/routers/repo/ai_model_manage.go @@ -179,8 +179,7 @@ func SaveModelConvert(ctx *context.Context) { } models.SaveModelConvert(modelConvert) - ConvertModelTemplate(ctx) - + ctx.Redirect(setting.AppSubURL + ctx.Repo.RepoLink + "/modelmanage/convert_model") } func SaveModel(ctx *context.Context) { @@ -270,9 +269,7 @@ func DeleteModelConvert(ctx *context.Context) { if err != nil { ctx.JSON(500, err.Error()) } else { - ctx.JSON(200, map[string]string{ - "result_code": "0", - }) + ctx.Redirect(setting.AppSubURL + ctx.Repo.RepoLink + "/modelmanage/convert_model") } }