Преглед изворни кода

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

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;