From ad8af8ac7451817195a58880f5e60159b3ab2131 Mon Sep 17 00:00:00 2001 From: Cy23 Date: Thu, 6 Jul 2023 06:37:50 +0000 Subject: [PATCH] =?UTF-8?q?update=20app/admin/controller/AuthRule.php.=20?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BF=AE=E6=94=B9=E6=88=90=E5=BC=B9=E5=87=BA?= =?UTF-8?q?=E7=AA=97=E5=8F=A3=E5=BD=A2=E5=BC=8F=EF=BC=8C=E5=B9=B6=E4=BC=A0?= =?UTF-8?q?=E9=80=92=E7=88=B6=E7=B1=BBID?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Cy23 --- app/admin/controller/AuthRule.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/admin/controller/AuthRule.php b/app/admin/controller/AuthRule.php index ae76f1f9..1fafab2d 100644 --- a/app/admin/controller/AuthRule.php +++ b/app/admin/controller/AuthRule.php @@ -83,7 +83,8 @@ class AuthRule extends Base 'title' => '添加', 'icon' => 'fa fa-plus', 'class' => 'btn btn-success btn-xs', - 'href' => url('add', ['pid' => '__id__']) + 'href' => '', + 'onclick' => '$.modal.open("添加", "'.url('add', ['_layer' => 1, 'pid' => '__id__']).'");' ]) ->addRightButtons($module->right_button) // 设置右侧操作列 ->addTopButtons($module->top_button) // 设置顶部按钮组 -- Gitee