|
|
|
@@ -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") |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|