diff --git a/apps/client/components/main/Answer.vue b/apps/client/components/main/Answer.vue index 009f8ef8..d0936c68 100644 --- a/apps/client/components/main/Answer.vue +++ b/apps/client/components/main/Answer.vue @@ -20,18 +20,25 @@
{{ courseStore.currentStatement?.chinese }}
- - +
+
+ + +
+
+ +
+
diff --git a/apps/client/components/main/MasteredBtn.vue b/apps/client/components/main/MasteredBtn.vue new file mode 100644 index 00000000..177c6a22 --- /dev/null +++ b/apps/client/components/main/MasteredBtn.vue @@ -0,0 +1,36 @@ + + + + + diff --git a/apps/client/components/main/QuestionInput/QuestionInput.vue b/apps/client/components/main/QuestionInput/QuestionInput.vue index 99b15d08..33489fa9 100644 --- a/apps/client/components/main/QuestionInput/QuestionInput.vue +++ b/apps/client/components/main/QuestionInput/QuestionInput.vue @@ -57,12 +57,7 @@ 播放声音 - + @@ -75,9 +70,7 @@ import { courseTimer } from "~/composables/courses/courseTimer"; import { useAnswerTip } from "~/composables/main/answerTip"; import { useCurrentStatementEnglishSound } from "~/composables/main/englishSound"; import { isWord } from "~/composables/main/question"; -import { useMastered } from "~/composables/main/useMastered"; import { useShowWordsWidth } from "~/composables/user/words"; -import { isAuthenticated } from "~/services/auth"; import { useCourseStore } from "~/store/course"; import { isWindows } from "~/utils/platform"; import { getWordWidth, useQuestionInput } from "./questionInputHelper"; @@ -98,7 +91,6 @@ const { const { isShowWordsWidth } = useShowWordsWidth(); const { toggleAnswerTip, isAnswerTip } = useAnswerTip(); const { resetCloseTip } = useAnswerError(); -const { handleMastered } = useMasteredShortcut(); initializeQuestionInput(); focusInputWhenWIndowFocus(); @@ -137,23 +129,6 @@ function focusInputWhenWIndowFocus() { }); } -function useMasteredShortcut() { - const { markStatementAsMastered } = useMastered(); - - function handleMastered() { - if (!isAuthenticated()) { - toast.warning("需要登录哦"); - return; - } - - markStatementAsMastered(); - } - - return { - handleMastered, - }; -} - const { playSound } = useCurrentStatementEnglishSound(); function handlePlaySound(e: MouseEvent) { e.preventDefault();