diff --git a/yudao-admin-vue3/src/views/mall/promotion/kefu/components/history/OrderBrowsingHistory.vue b/yudao-admin-vue3/src/views/mall/promotion/kefu/components/history/OrderBrowsingHistory.vue index 7330f54..9cd486a 100644 --- a/yudao-admin-vue3/src/views/mall/promotion/kefu/components/history/OrderBrowsingHistory.vue +++ b/yudao-admin-vue3/src/views/mall/promotion/kefu/components/history/OrderBrowsingHistory.vue @@ -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([]) // 列表 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 }) diff --git a/yudao-admin-vue3/src/views/mall/promotion/kefu/components/history/ProductBrowsingHistory.vue b/yudao-admin-vue3/src/views/mall/promotion/kefu/components/history/ProductBrowsingHistory.vue index 378e52c..5d4f98e 100644 --- a/yudao-admin-vue3/src/views/mall/promotion/kefu/components/history/ProductBrowsingHistory.vue +++ b/yudao-admin-vue3/src/views/mall/promotion/kefu/components/history/ProductBrowsingHistory.vue @@ -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 })