From 69b7bb42d1b2b891d4cd8c176755ef7a5c584fe0 Mon Sep 17 00:00:00 2001 From: Chenx221 Date: Mon, 8 Apr 2024 16:14:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E5=88=86=E4=BA=AB=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E4=B8=AD=E7=9A=84=E9=80=BB=E8=BE=91=E9=97=AE=E9=A2=98?= =?UTF-8?q?=20=E5=85=81=E8=AE=B8=E6=9F=A5=E7=9C=8B=E5=B7=B2=E7=BB=8F?= =?UTF-8?q?=E5=A4=B1=E6=95=88=E7=9A=84=E5=88=86=E4=BA=AB=E8=AF=A6=E6=83=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- views/admin/share_manage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/views/admin/share_manage.php b/views/admin/share_manage.php index b87b94a..99c48d9 100644 --- a/views/admin/share_manage.php +++ b/views/admin/share_manage.php @@ -62,7 +62,7 @@ $this->params['breadcrumbs'][] = $this->title; 'urlCreator' => function ($action, Share $model, $key, $index, $column) { if ($action === 'view') { // 返回查看按钮的链接 - return $model->status != 0 ? Url::toRoute(['share-manage-view', 'share_id' => $model->share_id]): null; + return Url::toRoute(['share-manage-view', 'share_id' => $model->share_id]); } else { // 如果 status 为 0,禁用删除按钮 return $model->status != 0 ? Url::toRoute(['share-manage-delete', 'share_id' => $model->share_id]) : null;