|
|
|
@ -285,7 +285,7 @@ export default { |
|
|
|
deleteRoom() { |
|
|
|
if (confirm('确定要删除这个房间吗?删除后所有子房间也会被删除。')) { |
|
|
|
const roomId = this.contextMenu.room.id |
|
|
|
// 删除房间及其所有子房间 |
|
|
|
// 删除房间及其所有子房间。 |
|
|
|
this.rooms = this.rooms.filter(r => r.id !== roomId && r.parentId !== roomId) |
|
|
|
if (this.selectedRoom === roomId) { |
|
|
|
this.selectedRoom = null |
|
|
|
|