소스 검색

没有可见分类,也允许进入页面

MaiXinRong 2 년 전
부모
커밋
95fc477124
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      app/service/filing.js

+ 1 - 0
app/service/filing.js

@@ -65,6 +65,7 @@ module.exports = app => {
         async getValidFiling(spid, filingType) {
             const condition = { spid, is_deleted: 0 };
             if (filingType !== 'all') condition.filing_type = filingType;
+            if (!filingType || filingType.length === 0) return [];
             return await this.getAllDataByCondition({ where: condition });
         }