Administrator vor 4 Jahren
Ursprung
Commit
917ff36204
1 geänderte Dateien mit 8 neuen und 6 gelöschten Zeilen
  1. 8 6
      src/main/resources/static/js/product/produce-list.js

+ 8 - 6
src/main/resources/static/js/product/produce-list.js

@@ -73,12 +73,14 @@ var productList = new Vue({
                                 $("img[data-original]").lazyload();
                             },500);
                         });
-                         _self.listData = resultData;
-                        // if(isPC){
-                        //     _self.listData = resultData;
-                        // }else{
-                        //     _self.listData = _self.listData.concat(resultData);
-                        // }
+                        if(isPC){
+                            _self.listData = resultData;
+                        }else{
+                            _self.listData=[],
+                            _self.listData = _self.listData.concat(resultData);
+                            console.log(_self.listData)
+                        }
+
                         _self.listLoading = false;
                         _self.requestFlag = true;
                }else {