From d9efd4e2e61fef6602a69302dbe4267fc90ca4c6 Mon Sep 17 00:00:00 2001 From: puhui999 Date: Tue, 2 Jul 2024 17:32:36 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=A2=E6=9C=8D=EF=BC=9A=E5=AE=8C=E5=96=84?= =?UTF-8?q?=E5=9B=BE=E7=89=87=E6=B6=88=E6=81=AF=E5=8F=91=E9=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/chat/index.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pages/chat/index.vue b/pages/chat/index.vue index 4a06139a..77cd40a2 100644 --- a/pages/chat/index.vue +++ b/pages/chat/index.vue @@ -109,8 +109,7 @@ } async function onSelect({ type, data }) { - let msg = ''; - // TODO puhui999: 还需要重构 + let msg; switch (type) { case 'image': const res = await FileApi.uploadFile(data.tempFiles[0].path); @@ -119,6 +118,7 @@ content: res.data, }; break; + // TODO puhui999: 还需要重构 case 'goods': msg = { contentType: KeFuMessageContentTypeEnum.PRODUCT, @@ -157,6 +157,8 @@ if (msg) { // 发送消息 // scrollBottom(); + await KeFuApi.sendKefuMessage(msg); + await getMessageList() chat.showTools = false; chat.showSelect = false; chat.selectMode = '';