Merged
Conversation
- 添加 settingsLoaded 条件判断,确保公共设置加载完成后再显示 Logo - 避免在设置未加载时显示默认 Logo 造成的闪烁效果
Contributor
There was a problem hiding this comment.
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>
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.
Summary
appStore加载时,会先显示默认的/logo.png,然后切换到自定义 Logo,造成视觉闪烁Changes
AppSidebar.vue: 添加settingsLoaded计算属性,在 Logo 容器上添加v-if="settingsLoaded"条件渲染,确保公共设置加载完成后再显示 Logo,消除加载时的闪烁效果