فهرست منبع

取值错误问题修改

liyuan 1 ماه پیش
والد
کامیت
ad4d161ee0
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  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.allStories = [...this.allStories, ...newData.data.records];
         this.displayedStories = [...this.allStories];
         this.displayedStories = [...this.allStories];
         this.page++;
         this.page++;
-        if (this.displayedStories.length >= newData.total) {
+        if (this.displayedStories.length >= newData.data.total) {
           this.noMore = true;
           this.noMore = true;
         }
         }
       } catch (err) {
       } catch (err) {