Browse Source

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

MaiXinRong 2 years ago
parent
commit
95fc477124
1 changed files with 1 additions and 0 deletions
  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 });
         }