feat:增加加载更多

This commit is contained in:
lixg
2023-02-22 14:46:25 +08:00
parent e168bedd6b
commit b31af085d5
8 changed files with 287 additions and 74 deletions

View File

@@ -184,7 +184,7 @@ function getPostList(discussId) {
console.log("我是当前讨论下的帖子", e);
state.postList = state.postList.concat(e.data.records);
state.total = Number(e.data.total);
if (e.data.records.length === 0) {
if (e.data.records.length === 0 || e.data.records.length < 10) {
state.noMore = true;
}
})