Browse Source

pc搜索联想逻辑bug修改

yangc 7 years ago
parent
commit
a1c09da2f5
1 changed files with 2 additions and 2 deletions
  1. 2 2
      components/common/PcSearchHeader.vue

+ 2 - 2
components/common/PcSearchHeader.vue

@@ -125,7 +125,7 @@
             } else if (this.similarList.component[0] && this.keyword === this.similarList.component[0].code) {
               sType = 'code'
             } else {
-              let arr = [...this.similarList.component, ...this.similarList.brand, ...this.similarList.kind]
+              let arr = [ ...this.similarList.brand, ...this.similarList.kind, ...this.similarList.component]
               if (arr[0]) {
                 if (arr[0].nameEn) {
                   this.keyword = arr[0].nameEn
@@ -147,7 +147,7 @@
             } else if (this.similarList.pCmpCode[0] && this.keyword === this.similarList.pCmpCode[0].pCmpCode) {
               sType = 'pCmpCode'
             } else {
-              let arr = [...this.similarList.pCmpCode, ...this.similarList.pBrandEn, ...this.similarList.kind]
+              let arr = [...this.similarList.pBrandEn, ...this.similarList.kind, ...this.similarList.pCmpCode]
               if (arr[0]) {
                 if (arr[0].nameEn) {
                   this.keyword = arr[0].nameEn