mirror of
https://gitee.com/ulthon/ulthon_information.git
synced 2026-03-03 16:24:28 +08:00
完成分页优化
This commit is contained in:
21
app/common/Bootstrap.php
Normal file
21
app/common/Bootstrap.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace app\common;
|
||||
|
||||
use think\paginator\driver\Bootstrap as DriverBootstrap;
|
||||
|
||||
class Bootstrap extends DriverBootstrap
|
||||
{
|
||||
|
||||
/**
|
||||
* 获取页码对应的链接
|
||||
*
|
||||
* @access protected
|
||||
* @param int $page
|
||||
* @return string
|
||||
*/
|
||||
protected function url(int $page): string
|
||||
{
|
||||
return (string)url($this->options['url'], ['page' => $page]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user