Skip to content

Commit

Permalink
[fix]进入表单页时,参数中没有Pager导致PagerModelBinder无法绑定,自动实例化时增加请求参数读取
Browse files Browse the repository at this point in the history
  • Loading branch information
nnhy committed Dec 14, 2023
1 parent bc41134 commit 1a08244
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion NewLife.CubeNC/Common/ReadOnlyEntityController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public override void OnActionExecuting(ActionExecutingContext filterContext)

// 默认加上分页给前台
var ps = filterContext.ActionArguments.ToNullable();
var p = ps["p"] as Pager ?? new Pager();
var p = ps["p"] as Pager ?? new Pager(WebHelper.Params);
ViewBag.Page = p;

//// 用于显示的列
Expand Down

0 comments on commit 1a08244

Please sign in to comment.