修改客服工作台商品信息查询分页

This commit is contained in:
sonjinyon 2024-11-18 13:35:09 +08:00
parent 35366d583c
commit 819fd0862a
2 changed files with 5 additions and 3 deletions

View File

@ -8,7 +8,7 @@ import { KeFuConversationRespVO } from '@/api/mall/promotion/kefu/conversation'
import { getOrderPage } from '@/api/mall/trade/order'
import { concat } from 'lodash-es'
defineOptions({ name: 'OrderBrowsingHistorys' })
defineOptions({ name: 'OrderBrowsingHistory' })
const list = ref<any>([]) //
const total = ref(0) //
@ -40,7 +40,8 @@ const loadMore = async () => {
queryParams.pageNo += 1
const res = await getOrderPage(queryParams)
total.value = res.total
concat(list.value, res.list)
// concat(list.value, res.list)
list.value = list.value.concat(res.list);
}
defineExpose({ getHistoryList, loadMore })
</script>

View File

@ -52,7 +52,8 @@ const loadMore = async () => {
queryParams.pageNo += 1
const res = await getBrowseHistoryPage(queryParams)
total.value = res.total
concat(list.value, res.list)
// concat(list.value, res.list)
list.value = list.value.concat(res.list);
}
defineExpose({ getHistoryList, loadMore })
</script>