Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
陈曦
sub2api
Commits
5429c74c
Commit
5429c74c
authored
Feb 13, 2026
by
wucm667
Browse files
fix: 修复侧边栏 Logo 加载时的闪烁问题
- 添加 settingsLoaded 条件判断,确保公共设置加载完成后再显示 Logo - 避免在设置未加载时显示默认 Logo 造成的闪烁效果
parent
c7b42148
Changes
1
Show whitespace changes
Inline
Side-by-side
frontend/src/components/layout/AppSidebar.vue
View file @
5429c74c
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
<!-- Logo/Brand -->
<!-- Logo/Brand -->
<div
class=
"sidebar-header"
>
<div
class=
"sidebar-header"
>
<!-- Custom Logo or Default Logo -->
<!-- Custom Logo or Default Logo -->
<div
class=
"flex h-9 w-9 items-center justify-center overflow-hidden rounded-xl shadow-glow"
>
<div
v-if=
"settingsLoaded"
class=
"flex h-9 w-9 items-center justify-center overflow-hidden rounded-xl shadow-glow"
>
<img
:src=
"siteLogo || '/logo.png'"
alt=
"Logo"
class=
"h-full w-full object-contain"
/>
<img
:src=
"siteLogo || '/logo.png'"
alt=
"Logo"
class=
"h-full w-full object-contain"
/>
</div>
</div>
<transition
name=
"fade"
>
<transition
name=
"fade"
>
...
@@ -167,6 +167,7 @@ const isDark = ref(document.documentElement.classList.contains('dark'))
...
@@ -167,6 +167,7 @@ const isDark = ref(document.documentElement.classList.contains('dark'))
const
siteName
=
computed
(()
=>
appStore
.
siteName
)
const
siteName
=
computed
(()
=>
appStore
.
siteName
)
const
siteLogo
=
computed
(()
=>
appStore
.
siteLogo
)
const
siteLogo
=
computed
(()
=>
appStore
.
siteLogo
)
const
siteVersion
=
computed
(()
=>
appStore
.
siteVersion
)
const
siteVersion
=
computed
(()
=>
appStore
.
siteVersion
)
const
settingsLoaded
=
computed
(()
=>
appStore
.
publicSettingsLoaded
)
// SVG Icon Components
// SVG Icon Components
const
DashboardIcon
=
{
const
DashboardIcon
=
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment