diff --git a/routers/repo/modelarts.go b/routers/repo/modelarts.go index 8c34eb0b2..5074dd521 100755 --- a/routers/repo/modelarts.go +++ b/routers/repo/modelarts.go @@ -42,6 +42,7 @@ const ( func DebugJobIndex(ctx *context.Context) { debugListType := ctx.Query("debugListType") + ctx.Data["ListType"] = debugListType MustEnableCloudbrain(ctx) repo := ctx.Repo.Repository page := ctx.QueryInt("page") @@ -84,7 +85,8 @@ func DebugJobIndex(ctx *context.Context) { } pager := context.NewPagination(int(count), setting.UI.IssuePagingNum, page, 5) - pager.SetDefaultParams(ctx) + //pager.SetDefaultParams(ctx) + pager.AddParam(ctx, "debugListType", "ListType") ctx.Data["Page"] = pager ctx.Data["PageIsCloudBrain"] = true ctx.Data["Tasks"] = ciTasks