Repository navigation
fix: 鹈鹕画廊更新时保持动画连续播放 - #296
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.
运行中的鹈鹕任务每 2 秒推送状态,画廊随之读取并获得新的预览能力地址,导致 HTML iframe 和旧 SVG 图片反复重新加载,动画不断从头播放,同时页头反复显示读取状态。
预览现在按结果 ID 保持当前文档:同一作品的能力地址换新不会重载正在播放的动画,切换作品或重新打开仍使用最新地址;无效或撤销的地址继续移除预览。后台状态更新静默刷新元数据,首次加载、筛选和手动刷新保留现有交互。任务执行与后端协议未变。
验证:预览与画廊 27 项定向测试、Vue 类型检查和受影响文件 ESLint 通过。真实 Chrome 中连续换新 5 次地址,预览文档仍只加载 1 次且动画时间连续,切换作品与重新挂载分别加载新文档;浏览器控制台无错误。使用固定 HTML/SVG 与合成数据,真实模型请求为 0。