|
@@ -109,13 +109,14 @@ export const useRoomStore = defineStore('room', {
|
|
|
},
|
|
|
async update(room: Room) {
|
|
|
await updateRoom(room, this.getNums(room))
|
|
|
- await this.fetchList()
|
|
|
+ await this.fetchList(this.roomStatus);
|
|
|
},
|
|
|
async insert(room: Omit<Room, 'id'>) {
|
|
|
await insertRoom(room, this.getNums(room))
|
|
|
// const sroom =
|
|
|
// this.list.push({ ...room, ...sroom })
|
|
|
- this.fetchList()
|
|
|
+ console.log(this.roomStatus)
|
|
|
+ this.fetchList(this.roomStatus);
|
|
|
},
|
|
|
async setRoomScenes(room: Room) {
|
|
|
const roomInfo = await fetchRoomDetail(room.id)
|