Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
添加了用户个人习惯选择:虽然在 readme 说每次清空是为了不形成错误的肌肉记忆,但有时每次重新开始确实会影响学习心态,所以添加了一个可选选项。另外,为了避免形成错误的记忆,并不显示错误输入的字母,普通模式只显示正确字母为红色,默写模式则只显示红色下划线。
相关 Issue: #926
功能描述:
实现细节:
store/index.ts
中添加errorHandleConfigAtom
配置,默认设置为传统模式(clear)WordComponent
中的错误处理逻辑,根据用户选择执行不同行为,并且在高级设置页面添加错误处理模式选项,使用开关控件保持与其他设置一致的UI风格。src › pages › Typing › components › Setting > AdvancedSetting.tsx > Line115