Repository navigation
fix: 修复额度卡片刷新时数字闪烁 - #5
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.
额度统计在收到新请求或同步数据后会失效,原先在后台重算期间返回空结果,导致卡片金额、均值和缓存命中率先变成“—”,随后恢复。本 PR 在同一有效周期更新时保留整组上次结果,新结果就绪后一起替换。
refreshing、aria-busy和悬浮说明标识更新中的结果,不将旧结果写成新版本缓存或重复写入周期历史。验证:326 项单元测试全部通过,类型检查与构建通过。真实 Electron 界面回归通过;新增测试刻意将统计 Worker 延迟 2.5 秒,确认更新过程中屏幕上的数字保持稳定,完成后更新状态清除。已生成并核对 macOS ARM64 应用包。