From e83ee7625cd8bf746761120447d4f15069923265 Mon Sep 17 00:00:00 2001 From: augushong Date: Fri, 20 Nov 2020 14:39:32 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89=E5=AF=BC=E8=88=AA=E7=9A=84?= =?UTF-8?q?=E5=88=86=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/admin/controller/Nav.php | 2 +- view/admin/nav/index.html | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/app/admin/controller/Nav.php b/app/admin/controller/Nav.php index 7216cb6..7b4fc3a 100644 --- a/app/admin/controller/Nav.php +++ b/app/admin/controller/Nav.php @@ -20,7 +20,7 @@ class Nav extends Common // $type = $request->param('type',1); - $list = ModelNav::order('sort asc')->order('id asc')->where('type',$type)->paginate(); + $list = ModelNav::order('sort asc')->order('id asc')->where('type',$type)->select(); View::assign('type', $type); View::assign('list', $list); diff --git a/view/admin/nav/index.html b/view/admin/nav/index.html index 49b167d..70128f0 100644 --- a/view/admin/nav/index.html +++ b/view/admin/nav/index.html @@ -82,9 +82,6 @@ {/if} -
- {$list|raw} -