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;