Browse Source

供应商搜索判空

yangc 7 years ago
parent
commit
a7aa55da54
1 changed files with 1 additions and 1 deletions
  1. 1 1
      components/mobile/base/SearchHeader.vue

+ 1 - 1
components/mobile/base/SearchHeader.vue

@@ -134,7 +134,7 @@
                 }
               }
             }
-          } else if (this.type === 'supplier' && this.keyword && this.keyword !== '') {
+          } else if (this.type === 'supplier' && this.keyword && this.keyword !== '' && this.similarList.pCmpCode) {
             if (this.similarList.pCmpCode[0] && this.keyword === this.similarList.pCmpCode[0].pCmpCode) {
               sType = 'pCmpCode'
             } else if (this.similarList.pBrandEn[0] && this.keyword === this.similarList.pBrandEn[0].nameEn) {