From 1c44e8a13c3e04bb970e672ca1e04b96e731a83d Mon Sep 17 00:00:00 2001 From: xsx <825657193@qq.com> Date: Tue, 25 Nov 2025 17:06:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=BC=E5=AE=B9=E6=96=B0=E7=89=88=E6=9C=AChb?= =?UTF-8?q?uilderx=E5=AF=BC=E8=87=B4h5=E8=AF=AD=E6=B3=95=E6=B6=88=E6=81=AF?= =?UTF-8?q?=E5=A4=B1=E8=B4=A5=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- im-uniapp/common/recorder-h5.js | 2 ++ im-uniapp/components/chat-record/chat-record.vue | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/im-uniapp/common/recorder-h5.js b/im-uniapp/common/recorder-h5.js index 3855942..fd03e6b 100644 --- a/im-uniapp/common/recorder-h5.js +++ b/im-uniapp/common/recorder-h5.js @@ -63,6 +63,8 @@ let upload = () => { }, file: file, name: 'file', + // 最新版本(4.85)的hbuilderx有bug,如果filePath为空会直接触发fail回调 + filePath: 'x', success: (res) => { let r = JSON.parse(res.data); if (r.code != 200) { diff --git a/im-uniapp/components/chat-record/chat-record.vue b/im-uniapp/components/chat-record/chat-record.vue index cb390d8..2e47cef 100644 --- a/im-uniapp/components/chat-record/chat-record.vue +++ b/im-uniapp/components/chat-record/chat-record.vue @@ -97,7 +97,7 @@ export default { this.$emit("send", data); }).catch((e) => { uni.showToast({ - title: e, + title: JSON.stringify(e), icon: 'none' }) })