mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
[更新]修改_list分页链接打开方式
This commit is contained in:
parent
a973e3eb40
commit
04d932a1c3
@ -128,7 +128,7 @@ class BasicAdmin extends Controller {
|
||||
cookie('rows', $row_page >= 10 ? $row_page : 20);
|
||||
$page = $db->paginate($row_page, $total, ['query' => $this->request->get()]);
|
||||
$result['list'] = $page->all();
|
||||
$result['page'] = preg_replace(['|href="(.*?)"|', '|pagination|'], ['data-load="$1" href="javascript:void(0);"', 'pagination pull-right'], $page->render());
|
||||
$result['page'] = preg_replace(['|href="(.*?)"|', '|pagination|'], ['data-open="$1" href="javascript:void(0);"', 'pagination pull-right'], $page->render());
|
||||
} else {
|
||||
$result['list'] = $db->select();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user