Skip to content

Commit

Permalink
Merge pull request #5 from jzyong/develop
Browse files Browse the repository at this point in the history
feat: 序列化
  • Loading branch information
jzyong authored Oct 19, 2024
2 parents cf328de + a1ec545 commit fb9bb27
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 fb9bb27

Please sign in to comment.