From 0b2ee27dfe30733a3031d667049b8593b53b38c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E8=88=AA?= Date: Tue, 13 Jan 2026 14:18:27 +0800 Subject: [PATCH] =?UTF-8?q?JLBA202505130001=5F=E5=85=B3=E4=BA=8E=E5=90=89?= =?UTF-8?q?=E6=9E=97=E9=93=B6=E8=A1=8C=E6=96=B0=E5=BB=BAAI=E6=99=BA?= =?UTF-8?q?=E8=83=BD=E5=9F=B9=E8=AE=AD=E7=B3=BB=E7=BB=9F=E7=9A=84=E9=9C=80?= =?UTF-8?q?=E6=B1=82=5F=E4=BF=AE=E5=A4=8Dsitbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/course/components/touchBtn.vue | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/src/pages/course/components/touchBtn.vue b/src/pages/course/components/touchBtn.vue index 3ef49789..4e1b9a78 100644 --- a/src/pages/course/components/touchBtn.vue +++ b/src/pages/course/components/touchBtn.vue @@ -58,10 +58,10 @@ - - + @@ -151,6 +151,9 @@ adjustPosition, formatType } = toRefs(props); + + defineExpose({clearInputText}) + const isLoadingState = computed(() => props.isLoading); const showTalkingModel = ref(false); @@ -600,6 +603,12 @@ common.msg('暂无问题需要回答!'); } }; + // + const clearInputText = (text = '') => { + let oldText = answerValue.value + answerValue.value = text; + return oldText + } const changeBtn = () => { if (props.isDisabled) return; keyboardIsShow.value = !keyboardIsShow.value;