fix:对接商品列表分页
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user