From 14938a9c832c0b93347aa4161a9297c8b5141cb8 Mon Sep 17 00:00:00 2001 From: CNWei Date: Tue, 3 Nov 2026 20:01:49 +0800 Subject: [PATCH] =?UTF-8?q?fix(sidebar):=20=E8=AE=BE=E7=BD=AE=E5=8A=A0?= =?UTF-8?q?=E8=BD=BD=E5=89=8D=E4=B8=8D=E6=B8=B2=E6=9F=93=E5=8F=AF=E9=9A=90?= =?UTF-8?q?=E8=97=8F=E5=8D=A1=E7=89=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 侧栏三个卡片统一等 /api/settings 返回后再渲染,避免禁用本地服务后刷新仍闪一下 --- stash-web/src/AppNext.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/stash-web/src/AppNext.tsx b/stash-web/src/AppNext.tsx index 90c10e2..13225d3 100644 --- a/stash-web/src/AppNext.tsx +++ b/stash-web/src/AppNext.tsx @@ -695,8 +695,10 @@ export default function AppNext() { sider={
- {site.sidebar.show_profile !== false && } - {site.sidebar.show_service !== false && ( + {settings !== null && site.sidebar.show_profile !== false && ( + + )} + {settings !== null && site.sidebar.show_service !== false && ( navigate('/interface')} /> )} - {site.sidebar.show_nav !== false && ( + {settings !== null && site.sidebar.show_nav !== false && (