Browse Source

商品分类筛选

DELL 3 years ago
parent
commit
67ef5778e4
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/views/business/goods/index.vue

+ 3 - 1
src/views/business/goods/index.vue

@@ -218,7 +218,9 @@ export default {
       // }
       // }
       if(this.queryParams.categoryIdList){
       if(this.queryParams.categoryIdList){
         for (let i = 0; i < this.queryParams.categoryIdList.length; i++) {
         for (let i = 0; i < this.queryParams.categoryIdList.length; i++) {
-          this.queryParams.categoryIdList[i] = this.queryParams.categoryIdList[i][1]
+          if(this.queryParams.categoryIdList[i][1]){
+            this.queryParams.categoryIdList[i] = this.queryParams.categoryIdList[i][1]
+          }
         }
         }
       }
       }
       getGoodsList('pageNum='+this.queryParams.pageNum + '&pageSize='+this.queryParams.pageSize+'&orderByColumn='+ this.queryParams.orderByColumn +'&isAsc='+ this.queryParams.isAsc +'&', {
       getGoodsList('pageNum='+this.queryParams.pageNum + '&pageSize='+this.queryParams.pageSize+'&orderByColumn='+ this.queryParams.orderByColumn +'&isAsc='+ this.queryParams.isAsc +'&', {