加入 包廂控制後關閉視窗 20250604

This commit is contained in:
allen.yan 2025-06-04 13:19:55 +08:00
parent 450811e641
commit c52509b478

View File

@ -88,8 +88,14 @@ class RoomDetailModal extends Component
$this->addError('api', 'API request failed: ' . $response->body());
return false;
}
// 可以加入成功提示或事件
// ✅ 成功提示
$this->notification()->send([
'icon' => 'success',
'title' => '成功',
'description' => '命令已成功發送:' . $data['command'],
]);
// ✅ 關閉 modal
$this->showModal = false;
return true;
}