From 53d9b0fb156764fec21fd76f0117f395ae4c198d Mon Sep 17 00:00:00 2001 From: Anyon Date: Fri, 25 Sep 2020 23:43:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=90=8E=E5=8F=B0=E7=B3=BB?= =?UTF-8?q?=E7=BB=9F=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/admin/controller/Menu.php | 11 +++++++++++ app/admin/view/login/index.html | 2 +- app/data/controller/NewsItem.php | 2 +- config/cookie.php | 2 +- vendor/services.php | 2 +- 5 files changed, 15 insertions(+), 4 deletions(-) diff --git a/app/admin/controller/Menu.php b/app/admin/controller/Menu.php index 7171db8e1..df64e0c7c 100644 --- a/app/admin/controller/Menu.php +++ b/app/admin/controller/Menu.php @@ -121,6 +121,17 @@ class Menu extends Controller } } + /** + * 菜单编辑成功后刷新页面 + * @param bool $state + */ + protected function _form_result(bool $state) + { + if ($state) { + $this->success('系统菜单修改成功!', 'javascript:location.reload()'); + } + } + /** * 修改菜单状态 * @auth true diff --git a/app/admin/view/login/index.html b/app/admin/view/login/index.html index 0d9191380..095a82ea9 100644 --- a/app/admin/view/login/index.html +++ b/app/admin/view/login/index.html @@ -26,7 +26,7 @@
  • -