日志动态分页数量
This commit is contained in:
@@ -9,7 +9,7 @@ class LoginLog extends CatchController
|
||||
{
|
||||
public function list()
|
||||
{
|
||||
return CatchResponse::paginate(Db::name('login_log')->paginate(10));
|
||||
return CatchResponse::paginate(Db::name('login_log')->paginate(request()->param('limit') ?? 10));
|
||||
}
|
||||
|
||||
public function empty()
|
||||
|
@@ -14,7 +14,7 @@ class OperateLog extends CatchController
|
||||
->field(['operate_log.*', 'users.username as creator'])
|
||||
->join('users','users.id = operate_log.creator_id')
|
||||
->order('id', 'desc')
|
||||
->paginate(10)
|
||||
->paginate(request()->param('limit') ?? 10)
|
||||
);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user