加入 包廂控制後關閉視窗 20250604
This commit is contained in:
parent
450811e641
commit
c52509b478
@ -88,8 +88,14 @@ class RoomDetailModal extends Component
|
|||||||
$this->addError('api', 'API request failed: ' . $response->body());
|
$this->addError('api', 'API request failed: ' . $response->body());
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
// ✅ 成功提示
|
||||||
// 可以加入成功提示或事件
|
$this->notification()->send([
|
||||||
|
'icon' => 'success',
|
||||||
|
'title' => '成功',
|
||||||
|
'description' => '命令已成功發送:' . $data['command'],
|
||||||
|
]);
|
||||||
|
// ✅ 關閉 modal
|
||||||
|
$this->showModal = false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user