From 989b3a85e42ceb719a784dffa6d6c4ac5c249c6d Mon Sep 17 00:00:00 2001 From: tensent Date: Mon, 20 Apr 2020 22:46:50 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E6=95=B0=E6=8D=AE=E5=BA=93?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E7=9A=84=E4=B8=80=E4=B8=AA=E4=B8=8D=E5=85=BC?= =?UTF-8?q?=E5=AE=B9=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/admin/Base.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controller/admin/Base.php b/app/controller/admin/Base.php index 5b4db301..deebb909 100644 --- a/app/controller/admin/Base.php +++ b/app/controller/admin/Base.php @@ -160,7 +160,7 @@ class Base extends BaseC { // 是否开发者模式 $where['is_dev'] = 0; } - $row = Menu::where($where)->order('sort asc')->field('id,title,url,icon,"" as style')->select(); + $row = Menu::where($where)->order('sort asc')->field('id,title,url,icon,'' as style')->select(); foreach ($row as $key => $value) { //此处用来做权限判断 if (!IS_ROOT && !$this->checkRule(substr($value['url'], 1), 2, null)) {