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;