panhui 3 anni fa
parent
commit
726349a4bc
1 ha cambiato i file con 3 aggiunte e 2 eliminazioni
  1. 3 2
      src/views/Store.vue

+ 3 - 2
src/views/Store.vue

@@ -351,9 +351,10 @@ export default {
             }
             this.finished = false;
             this.empty = false;
+            this.loading = true;
             let form = {
                 page: this.page,
-                size: 20,
+                size: 10,
                 sort: this.sort === 'price' ? this.sort + this.sortDes : this.sort,
                 query: {
                     userId: this.$store.state.userInfo.id,
@@ -376,7 +377,7 @@ export default {
                     } else {
                         this.list = [...this.list, ...res.content];
                     }
-                    this.empty = res.empty;
+                    this.empty = res.empty && res.first;
                     this.loading = false;
                     this.finished = res.last;
                     if (!this.finished) {