diff --git a/src/pages/course/components/touchBtnOnlyVoice.vue b/src/pages/course/components/touchBtnOnlyVoice.vue index 2e221eb8..d86b257c 100644 --- a/src/pages/course/components/touchBtnOnlyVoice.vue +++ b/src/pages/course/components/touchBtnOnlyVoice.vue @@ -487,6 +487,11 @@ }); } }; + const clearInputText = (text = '') => { + let oldText = answerValue.value + answerValue.value = text; + return oldText + } const changeBtn = () => { if (props.isDisabled) return; keyboardIsShow.value = !keyboardIsShow.value; @@ -495,6 +500,7 @@ onHide(() => { isGettingPermission.value = true }) + defineExpose({clearInputText})