fix:对接商品列表分页
Build and Deploy Vue3 / build (push) Successful in 2m53s
Build and Deploy Vue3 / deploy (push) Successful in 6m6s

This commit is contained in:
2025-12-11 17:52:52 +08:00
parent 41d6492daf
commit b56359e572
+1 -1
View File
@@ -408,7 +408,7 @@ const fetchProductList = async () => {
if (res.data.code === 200) { if (res.data.code === 200) {
productList.value = res.data.data.data || [] productList.value = res.data.data.data || []
productList.value = productList.value.filter(item => item.delete == false) productList.value = productList.value.filter(item => item.delete == false)
total.value = res.data.data.total || 0 total.value = res.data.data.all_count || 0
productList.value = productList.value.map(item => { productList.value = productList.value.map(item => {
item.image = item.coverId ? getFileDetail({ file_id: item.coverId }).then(res => res.data.data.url) : '' item.image = item.coverId ? getFileDetail({ file_id: item.coverId }).then(res => res.data.data.url) : ''
return item return item