Repository navigation
收紧登录状态并移除 nil 默认参数 - #89
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
用户影响
登录与注册的输入、提交和已有状态保持原有行为,不涉及真实账户或数据迁移。
修改
登录组件使用泛型保留状态 Map 的值类型,并在读取登录草稿时直接匹配缺失与已有值,去掉
nil默认参数。缺失、nil 或 false 仍使用空表单;已有登录草稿仍按原规则检查。在现有组件测试中覆盖上述四种状态,使用合成输入,不连接服务端。
验证