Skip to content

Commit

Permalink
feat: 序列化
Browse files Browse the repository at this point in the history
  • Loading branch information
熊猫 committed Oct 19, 2024
1 parent cf328de commit a1ec545
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ugk-api/controller/base.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,12 @@ func (s *BaseController) AjaxTable(list interface{}, cnt int, recordsTotal int,
}
}
s.Data["json"] = json
s.ServeJSON()
_ = s.ServeJSON()
s.StopRun()
}

// replayJson 返回json
func (s *BaseController) replayJson(data any) {
s.Data["json"] = data
s.ServeJSON()
_ = s.ServeJSON()
}

0 comments on commit a1ec545

Please sign in to comment.