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' }) })