From 3a2a30e12f881e1a4bbc688a84c081a5957ccaaf Mon Sep 17 00:00:00 2001 From: lik Date: Thu, 5 Nov 2026 22:13:56 +0800 Subject: [PATCH] =?UTF-8?q?fix(ai):=20=E5=8F=96=E6=B6=88=E8=AF=AD=E9=9F=B3?= =?UTF-8?q?=E8=BE=93=E5=85=A5=E5=90=8E=E4=BF=9D=E7=95=99=E5=B7=B2=E8=AF=86?= =?UTF-8?q?=E5=88=AB=E6=96=87=E5=AD=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/ai/aichat.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/ai/aichat.js b/pages/ai/aichat.js index d13cac1..c393954 100644 --- a/pages/ai/aichat.js +++ b/pages/ai/aichat.js @@ -799,7 +799,7 @@ Page({ wx.showToast({ title: '已取消语音输入', icon: 'none' }) }, - // 页面隐藏 / 主动放弃:中止本轮,输入框回到开录前手打的内容 + // 页面隐藏 / 主动放弃:中止本轮,保留输入框当前文字,便于修改后继续发送 cancelVoiceInput() { const stream = this.voiceStream if (stream && !stream.stopSent) { @@ -807,7 +807,7 @@ Page({ stream.socket.send({ type: 'asr_cancel', id: stream.id }).catch(() => {}) } this.stopRecorderSilently() - this.resetVoiceState(false) + this.resetVoiceState(true) }, clearRecordTimer() {