fix warning
This commit is contained in:
parent
8b0a5a5c9b
commit
27fe5f2e75
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user