From 819fd0862a3b05033878ce5f63759ad14b973f94 Mon Sep 17 00:00:00 2001 From: sonjinyon <2476687577@qq.com> Date: Mon, 18 Nov 2024 13:35:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AE=A2=E6=9C=8D=E5=B7=A5?= =?UTF-8?q?=E4=BD=9C=E5=8F=B0=E5=95=86=E5=93=81=E4=BF=A1=E6=81=AF=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=E5=88=86=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../kefu/components/history/OrderBrowsingHistory.vue | 5 +++-- .../kefu/components/history/ProductBrowsingHistory.vue | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) 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 })