Repository navigation
fix: 目录切换后列表数据未及时失效 - #65
Merged
Merged
Conversation
城通只在页面请求里暴露目录 id,切目录后旧请求仍会被当成本目录的列表重放。 切目录时清掉记录,兜底把当前目录排在根目录之前。
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.
改动
背景
个人网盘在目录切换的过渡期内,页面尚未发出新的列表请求。此时触发下载助手,会沿用上一目录的请求参数,返回的文件与下载地址均属于旧目录,过程中没有任何提示。
仅使请求失效并不充分:兜底逻辑此前只回退到根目录,等同于用根目录替代旧目录,因此两处需要同时调整。
验证
已在浏览器中安装脚本并手动验证过受影响的页面
本地自动化检查全部通过,其中新增两条回归断言覆盖该场景。
分别保留单一改动时断言失败,两者同时存在时通过,确认缺一不可。
采用页面注入方式验证渲染结果,未使用真实账号进行端到端确认。
脚本版本号未变更。