diff --git a/routers/search.go b/routers/search.go index 4a2e727df..5083792cd 100644 --- a/routers/search.go +++ b/routers/search.go @@ -111,8 +111,9 @@ func searchRepoByLabel(ctx *context.Context, Key string, Page int, PageSize int) log.Info("query es error," + err.Error()) ctx.JSON(200, "") } + } else { + ctx.JSON(200, "") } - ctx.JSON(200, "") } func searchRepo(ctx *context.Context, TableName string, Key string, Page int, PageSize int, OnlyReturnNum bool) {