fix warning

This commit is contained in:
Chenx221 2024-04-07 14:36:08 +08:00
parent 8b0a5a5c9b
commit 27fe5f2e75
Signed by: chenx221
GPG Key ID: D7A9EC07024C3021

View File

@ -63,7 +63,7 @@ $this->params['breadcrumbs'][] = $this->title;
if ($action === 'view') {
// 返回查看按钮的链接
return $model->status != 0 ? Url::toRoute(['share-manage-view', 'share_id' => $model->share_id]): null;
} elseif ($action === 'delete') {
} else {
// 如果 status 为 0禁用删除按钮
return $model->status != 0 ? Url::toRoute(['share-manage-delete', 'share_id' => $model->share_id]) : null;
}