Skip to content

fix: 修复侧边栏 Logo 加载时的闪烁问题#570

Merged
Wei-Shaw merged 2 commits intoWei-Shaw:mainfrom
wucm667:fix/sidebar-logo-load-flicker
Feb 13, 2026
Merged

fix: 修复侧边栏 Logo 加载时的闪烁问题#570
Wei-Shaw merged 2 commits intoWei-Shaw:mainfrom
wucm667:fix/sidebar-logo-load-flicker

Conversation

@wucm667
Copy link
Contributor

@wucm667 wucm667 commented Feb 13, 2026

Summary

  • 侧边栏 Logo 在公共设置加载完成前就开始渲染,导致页面加载时出现短暂的闪烁效果
  • 当自定义 Logo 尚未从 appStore 加载时,会先显示默认的 /logo.png,然后切换到自定义 Logo,造成视觉闪烁

Changes

  • AppSidebar.vue: 添加 settingsLoaded 计算属性,在 Logo 容器上添加 v-if="settingsLoaded" 条件渲染,确保公共设置加载完成后再显示 Logo,消除加载时的闪烁效果

- 添加 settingsLoaded 条件判断,确保公共设置加载完成后再显示 Logo
- 避免在设置未加载时显示默认 Logo 造成的闪烁效果
Copilot AI review requested due to automatic review settings February 13, 2026 02:26
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

通过延迟渲染侧边栏 Logo,避免公共设置加载完成前先显示默认 Logo 再切换到自定义 Logo 所导致的闪烁。

Changes:

  • AppSidebar.vue 增加 settingsLoaded 计算属性读取 appStore.publicSettingsLoaded
  • 为 Logo 容器添加 v-if="settingsLoaded",仅在设置加载完成后渲染 Logo

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@Wei-Shaw Wei-Shaw merged commit 28a5e2f into Wei-Shaw:main Feb 13, 2026
3 of 4 checks passed
@wucm667 wucm667 deleted the fix/sidebar-logo-load-flicker branch February 15, 2026 02:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants