소스 검색

fix: textbook list forEach null

ryanemax 6 달 전
부모
커밋
b554f44c2b
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      projects/textbook/src/app/textbook/textbook.component.ts

+ 1 - 0
projects/textbook/src/app/textbook/textbook.component.ts

@@ -223,6 +223,7 @@ export class TextbookComponent implements OnInit {
   fromatFiled(list: Array<Parse.Object>, filed: string): string {
     let arr: Array<string | null> = [];
     let isDate = false;
+    // 监测空值
     list?.forEach((item: Parse.Object) => {
       // arr.add(item.get(filed))
       if (