lrf402788946 4 年之前
父节点
当前提交
483d3c7e4b
共有 1 个文件被更改,包括 1 次插入1 次删除
  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