src/components/RoomStatus/src/RoomStatus.vue
@@ -9,7 +9,7 @@ const props = defineProps({ title: { type: Number, type: String, required: true }, bedList: { @@ -18,15 +18,15 @@ } }) const onclick = (item) => { console.error(item); const onclick = async (item) => { item.onstage = !item.onstage; await RoomApi.updateRoom(item) } </script> <template> <el-card style="width: 180px" shadow="hover" > <el-card style="width: 200px" shadow="hover" > <template #header>{{title}}</template> <div v-for="(bedItem, index) in bedList" :key="index"> <img v-if="bedItem.onstage"