yuanyuan 3 lat temu
rodzic
commit
9b0edfa2d5
1 zmienionych plików z 2 dodań i 13 usunięć
  1. 2 13
      src/components/product/SaleInfo.vue

+ 2 - 13
src/components/product/SaleInfo.vue

@@ -251,10 +251,8 @@ export default {
                         this.list = [];
                     }
                     if (refresh) {
-                        console.log('sdfsdsd');
                         this.list = [...this.list];
                     } else {
-                        console.log('sdfsdsd11111');
                         this.list = [...this.list, ...res.content];
                     }
                     this.empty = res.empty;
@@ -271,7 +269,7 @@ export default {
                     if (res.first) {
                         this.list = [];
                     }
-                    if (refresh) {
+                    if (refresh && this.page > 0) {
                         this.list = [...this.list];
                     } else {
                         this.list = [...this.list, ...res.content];
@@ -310,11 +308,7 @@ export default {
                     if (res.first) {
                         this.list = [];
                     }
-                    if (refresh) {
-                        this.list = [...this.list];
-                    } else {
-                        this.list = [...this.list, ...res.content];
-                    }
+                    this.list = [...this.list, ...res.content];
                     this.empty = res.empty;
                     this.loading = false;
                     this.finished = res.last;
@@ -329,11 +323,6 @@ export default {
                     if (res.first) {
                         this.list = [];
                     }
-                    if (refresh) {
-                        this.list = [...this.list];
-                    } else {
-                        this.list = [...this.list, ...res.content];
-                    }
                     this.list = [...this.list, ...res.content];
                     this.empty = res.empty;
                     this.loading = false;