[更新]修改_list分页链接打开方式

This commit is contained in:
Anyon 2017-05-15 17:37:43 +08:00
parent a973e3eb40
commit 04d932a1c3

View File

@ -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();
}