Browse Source

取值错误问题修改

liyuan 1 month ago
parent
commit
ad4d161ee0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      pages/home/index.vue

+ 1 - 1
pages/home/index.vue

@@ -220,7 +220,7 @@ export default {
         this.allStories = [...this.allStories, ...newData.data.records];
         this.displayedStories = [...this.allStories];
         this.page++;
-        if (this.displayedStories.length >= newData.total) {
+        if (this.displayedStories.length >= newData.data.total) {
           this.noMore = true;
         }
       } catch (err) {