mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/student-h5.git
synced 2025-12-10 19:36:47 +08:00
feat:增加加载更多
This commit is contained in:
@@ -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;
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user