Administrator 4 年之前
父節點
當前提交
762437c05a
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/main/resources/static/js/product/produce-list.js

+ 2 - 1
src/main/resources/static/js/product/produce-list.js

@@ -64,6 +64,7 @@ var productList = new Vue({
            var _self=this;
            ProductApi.GetSearchProduct(_self.params,function (res) {
                if( res.code==0){
+                     _self.listData=[];
                      var result = JSON.parse(res.data);
                       _self.listRecord = result.total;
                        var resultData = setSearchProductList(result.items, _self.userId, function(){
@@ -76,7 +77,6 @@ var productList = new Vue({
                         if(isPC){
                             _self.listData = resultData;
                         }else{
-                            _self.listData=[],
                             _self.listData = _self.listData.concat(resultData);
                             console.log(_self.listData)
                         }
@@ -155,6 +155,7 @@ var productList = new Vue({
                     this.params.id = item.tinyTypeID;
                     break;
             }
+           _self.listData=[];
            this.getproductList();
         },
     },