浏览代码

修复增加房间取消选择时不能正确的取消问题

DESKTOP-B78GIPM\admin 2 年之前
父节点
当前提交
b34a28f99a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/views/room/modules/checkIn/SelectRoomForm.vue

+ 1 - 1
src/views/room/modules/checkIn/SelectRoomForm.vue

@@ -363,7 +363,7 @@ export default {
           }
       if (row.check === 1) {
         row.check = 0;
-        var index = this.model.rooms.findIndex((t) => t.key1 == row.key1);
+        var index = this.model.rooms.findIndex((t) => t.id == row.id);
         this.model.rooms.splice(index, 1);
       } else {
         row.check = 1;