feat: two dashboard persistence optimizations #4221
Merged
+11
−3
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.
为 Dashboard 添加两处用户界面状态持久化功能,提升用户体验。
Modifications / 改动点
文件: dashboard/src/views/PlatformPage.vue
改动: 日志区域的展开/收起状态现在会保存到浏览器 localStorage
效果: 切换页面后返回,日志区域会保持之前的展开/收起状态,无需每次手动展开
文件: dashboard/src/layouts/full/vertical-sidebar/VerticalSidebar.vue
改动:
添加 v-model:opened 绑定展开状态到 localStorage
添加 :open-strategy="'multiple'" 防止 Vuetify 在路由切换时自动收起分组
效果: 展开"更多功能"后,在不同页面间切换时保持展开状态,无需反复点击展开
Screenshots or Test Results / 运行截图或测试结果
default.mp4
Checklist / 检查清单
requirements.txt和pyproject.toml文件相应位置。/ I have ensured that no new dependencies are introduced, OR if new dependencies are introduced, they have been added to the appropriate locations inrequirements.txtandpyproject.toml.Summary by Sourcery
在仪表盘中持久化侧边栏分组和平台页面控制台可见性的界面状态。
新功能:
Original summary in English
Summary by Sourcery
Persist dashboard UI state for sidebar groups and platform page console visibility.
New Features: