浏览代码

供应商搜索判空

yangc 7 年之前
父节点
当前提交
a7aa55da54
共有 1 个文件被更改,包括 1 次插入1 次删除
  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) {