Repository navigation
fix(knowledge): 返回空间列表时保留所选标签 - #2574
Merged
SuperstructureJH merged 2 commits intoOct 31, 2026
Merged
Conversation
… status Preserve knowledge tab, desktop typography and app back-button records. Validate 59 related tests plus frontend lint, type checks and i18n.
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.
What
从“我加入的”或“我创建的”进入知识空间详情,点击返回后恢复进入前选择的标签。原有页面组件与视觉样式保持一致。
Why
列表标签保存在组件本地状态中,进入详情卸载列表,返回挂载时恢复默认部门标签。页面外层 KeepAlive 冻结的路由上下文也会使模块重入继续读取旧标签。
How
tab保存列表选择,进入空间、文件夹及返回列表时携带该状态。Test
2ebff30cb后,8 组 / 59 项组合回归、前端全量 ESLint/类型检查、语言资源及差异检查通过。集成用例使用真实主页面、MainLayout/AliveScope、列表标签和详情返回按钮;接口、数据密集子组件及激活回调采用夹具。覆盖三种标签、文件夹逐级返回、浏览器前进后退、直接详情链接及模块重入。
Related
验证记录:
docs/verification/knowledge-return-tab-20261031.md。原修复基线:
feat/bisheng-work-120-main@4cc8f565fb5bc8bd918973ce74f876e6fd66af26。当前已同步:
feat/bisheng-work-120-main@2ebff30cbd5d6be7d100c59f6705443247cfb46d。整合docs/STATUS.md两侧新增记录,知识空间实现与原修复一致。