From bcc07c301ebc25dc6a76fea67e8d06cb6ccf87f2 Mon Sep 17 00:00:00 2001 From: augushong Date: Mon, 28 Dec 2020 21:20:13 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=86=E9=A1=B5.=E9=93=BE=E6=8E=A5=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/index/controller/Index.php | 5 ++++- public/static/css/index.articles.css | 4 ++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/app/index/controller/Index.php b/app/index/controller/Index.php index 7c93fb5..8546f71 100644 --- a/app/index/controller/Index.php +++ b/app/index/controller/Index.php @@ -49,7 +49,10 @@ class Index extends Common } - $list_post = $model_post->paginate(['url' => 'Index/index']); + $list_post = $model_post->paginate([ + 'url' => 'Index/index', + 'query' => $this->request->get() + ]); View::assign('current_category', $current_category); View::assign('sub_category', $sub_category); diff --git a/public/static/css/index.articles.css b/public/static/css/index.articles.css index be30e3a..ecb629c 100644 --- a/public/static/css/index.articles.css +++ b/public/static/css/index.articles.css @@ -205,4 +205,8 @@ .layui-container { width: 1280px; } +} + +a.post-item:visited{ + color: #bbb; } \ No newline at end of file