mirror of
https://gitee.com/ulthon/ulthon_information.git
synced 2026-03-03 16:24:28 +08:00
分页支持参数
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user