@@ -24,7 +24,7 @@ import { useInjectedDisplayPolicy } from '~/composables/practice-words/usePracti
2424import { emitter , EventKey } from ' @typewords/core/utils/eventBus.ts'
2525import { computed , onMounted , onUnmounted , ref , watch } from ' vue'
2626import WordLookupPopover from ' @typewords/core/components/word/WordLookupPopover.vue'
27- import { BaseButton , BaseIcon , Textarea , ToastComponent , Tooltip , VolumeIcon } from ' @typewords/base'
27+ import { BaseButton , BaseIcon , Textarea , Toast , ToastComponent , Tooltip , VolumeIcon } from ' @typewords/base'
2828import { useI18n } from ' vue-i18n'
2929import { useWordOptions } from ' @typewords/core/hooks/dict.ts'
3030import { openWordCollectPicker } from ' @typewords/core/hooks/useWordCollectPicker.ts'
@@ -233,19 +233,30 @@ const isWordTestVal = computed(() => {
233233 return props .practiceType === WordPracticeType .Identify && settingStore .identifyMethod === IdentifyMethod .WordTest
234234})
235235
236+ let showNotice = false
237+
236238function onIdentifyKnow() {
237239 if (isWordTestVal .value ) {
238240 // WordTest 选对
239241 typingCoreRef ?.setWordTestResult ?.(true , props .word .word )
240242 playCorrect ()
241243 emit (' know' )
244+
245+ if (! showNotice ) {
246+ Toast .info ($t (' press_space_continue' ), { duration: 5000 })
247+ showNotice = true
248+ }
242249 return
243250 }
244251 // SelfAssessment "认识"
245252 if (! showWordResult ) {
246253 showWordResult = true
247254 typingCoreRef ?.revealWord ?.(props .word .word )
248255 emit (' know' )
256+ if (! showNotice ) {
257+ Toast .info ($t (' know_word_tip' ), { duration: 5000 })
258+ showNotice = true
259+ }
249260 }
250261}
251262
@@ -256,6 +267,11 @@ function onIdentifyWrong() {
256267 playBeep ()
257268 emit (' wrong' )
258269 playWord (WordPlayTrigger .Typo )
270+
271+ if (! showNotice ) {
272+ Toast .info ($t (' press_space_continue' ), { duration: 5000 })
273+ showNotice = true
274+ }
259275 return
260276 }
261277 // 其他情况透传
@@ -283,7 +299,7 @@ const notice = $computed(() => {
283299 : props .practiceType === WordPracticeType .Listen
284300 ? ' 输入完成后按空格键切换下一个'
285301 : showWordResult
286- ? typingCoreRef ?.right
302+ ? typingCoreRef ?.isWordRight ()
287303 ? ' 按空格键切换下一个'
288304 : $t (' press_delete_reinput' )
289305 : ' 按空格键完成输入'
0 commit comments