1
0
mirror of https://github.com/ialley-workshop-open/uni-halo.git synced 2026-07-29 05:50:41 +08:00

fix: 修复首页加载异常问题

This commit is contained in:
小莫唐尼
2024-05-22 00:43:24 +08:00
parent f6069cad95
commit 512a4013b9
16 changed files with 366 additions and 62 deletions
+3 -3
View File
@@ -81,7 +81,7 @@
},
isLoadMore: false,
loadMoreText: '',
result: {},
hasNext: false,
dataList: []
};
},
@@ -101,7 +101,7 @@
this.fnGetData();
},
onReachBottom(e) {
if (this.result.hasNext) {
if (this.hasNext) {
this.queryParams.page += 1;
this.isLoadMore = true;
this.fnGetData();
@@ -150,7 +150,7 @@
.getPhotoListByGroupName(this.queryParams)
.then(res => {
console.log("相册 res", res)
this.result = res;
this.hasNext = res.hasNext;
this.loading = 'success';
if (res.items.length != 0) {
const _list = res.items.map((item, index) => {