feat: update player
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user