소스 검색

修复变更期打开bug

ellisran 1 년 전
부모
커밋
6bda2e16ab
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/service/change_settle_list.js

+ 1 - 1
app/service/change_settle_list.js

@@ -22,7 +22,7 @@ module.exports = app => {
 
         async isSettle(cid) {
             const result = await this.getDataByCondition({ cid });
-            return result.length > 0;
+            return result && result.length > 0;
         }
 
         async updateChangeList(cid, settleBills, settlePos, list) {