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