分页支持参数

This commit is contained in:
augushong
2020-12-28 20:59:49 +08:00
parent 7ca86a5981
commit 708020c17e

View File

@@ -16,6 +16,10 @@ class Bootstrap extends DriverBootstrap
*/ */
protected function url(int $page): string protected function url(int $page): string
{ {
return (string)url($this->options['url'], ['page' => $page]); $parameters = ['page' => $page];
if (count($this->options['query']) > 0) {
$parameters = array_merge($this->options['query'], ['page' => $page]);
}
return (string)url($this->options['url'], $parameters);
} }
} }