lrf402788946 4 năm trước cách đây
mục cha
commit
483d3c7e4b
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      app/service/bedroom.js

+ 1 - 1
app/service/bedroom.js

@@ -205,7 +205,7 @@ class BedroomService extends CrudService {
     }
     const havepersonList = [];
     for (const key of keys) {
-      if (key === undefined || key === 'undefined') continue;
+      if (key === undefined || key === 'undefined' || key === null || key === 'null') continue;
       // 取出分组后,以寝室id为key的学生列表
       const list = stuBedIdGroup[key];
       // 找到寝室obj