Basis of publisher page

This commit is contained in:
2025-11-08 13:29:09 +08:00
parent 1724044bce
commit 209be30d45
9 changed files with 314 additions and 38 deletions

View File

@@ -108,11 +108,16 @@ export const useRepliesList = (params: RepliesListParams | Ref<RepliesListParams
side: string
done: (status: "empty" | "loading" | "error" | "ok") => void
}) => {
if (!state.value.hasMore || state.value.loading) {
if (!state.value.hasMore) {
options?.done("empty")
return
}
if (state.value.loading) {
options?.done("loading")
return
}
const result = await fetchReplies(state.value.cursor, true)
if (result.hasReachedEnd) {