ソースを参照

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

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;