feat: update player

This commit is contained in:
yanghao05
2025-04-29 11:24:54 +08:00
parent ee21908887
commit c9740e6403
7 changed files with 81 additions and 14 deletions

View File

@@ -17,14 +17,14 @@ const fetchArticles = async () => {
if (loading.value) return
loading.value = true
try {
const response = await postApi.mine({
const { data } = await postApi.mine({
page: currentPage.value,
limit
})
if (response.data.data?.length === 0) {
if (data.items?.length === 0) {
hasMore.value = false
} else {
purchasedArticles.value.push(...response.data.data)
purchasedArticles.value.push(...data.items)
currentPage.value += 1
}
} catch (error) {