完成分页优化

This commit is contained in:
augushong
2020-08-20 12:12:12 +08:00
parent 44ff06a2fd
commit e07ca74785
5 changed files with 50 additions and 27 deletions

21
app/common/Bootstrap.php Normal file
View 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]);
}
}