單機版 v.0.0.7 20250617

問題修正
This commit is contained in:
allen.yan 2025-06-17 14:08:28 +08:00
parent 6f528de820
commit 103c4bb18c
2 changed files with 2 additions and 2 deletions

View File

@ -92,7 +92,7 @@ class RoomForm extends Component
$this->dispatch('pg:eventRefresh-room-table'); $this->dispatch('pg:eventRefresh-room-table');
} }
public function deleteBranch($id) public function deleteRoom($id)
{ {
if ($this->canDelect) { if ($this->canDelect) {
Room::findOrFail($id)->delete(); Room::findOrFail($id)->delete();

View File

@ -190,7 +190,7 @@ final class RoomTable extends PowerGridComponent
} }
private function noUpdated($id,$field,$value){ private function noUpdated($id,$field,$value){
dd($id,$field,$value); //dd($id,$field,$value);
$room = Room::find($id); $room = Room::find($id);
if ($room) { if ($room) {
$room->{$field} = $value; $room->{$field} = $value;