1
0
mirror of https://github.com/ialley-workshop-open/uni-halo.git synced 2026-06-12 13:19:31 +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
@@ -191,11 +191,11 @@
size: 10,
page: 1
},
result: {},
detail: {
show: false,
data: {}
},
hasNext:false,
isLoadMore: false,
loadMoreText: '',
dataList: [],
@@ -225,7 +225,7 @@
this.fnGetData();
},
onReachBottom(e) {
if (this.result.hasNext) {
if (this.hasNext) {
this.queryParams.page += 1;
this.isLoadMore = true;
this.fnGetData();
@@ -252,7 +252,7 @@
.then(res => {
console.log('请求结果:');
console.log(res);
this.result = res;
this.hasNext = res.hasNext;
const list = res.items.map(item => {
item.spec.logo = this.$utils.checkAvatarUrl(item.spec.logo)
return item;