From 91e16db547537357d4d7e1035bd912ec6a91fe12 Mon Sep 17 00:00:00 2001 From: intfoo Date: Sat, 18 Jul 2026 21:27:28 +0800 Subject: [PATCH] =?UTF-8?q?fix(layout):=20=E4=BF=AE=E5=A4=8D=20None=20?= =?UTF-8?q?=E6=A1=A3+=E8=87=AA=E5=AE=9A=E4=B9=89=E5=AE=9E=E6=97=B6?= =?UTF-8?q?=E6=BA=90=E7=94=A8=E6=88=B7=E4=BE=A7=E8=BE=B9=E6=A0=8F=E6=8C=87?= =?UTF-8?q?=E6=95=B0=E8=A1=8C=E6=83=85=E4=B8=8D=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 承接 #121 review: Layout.tsx:631 的 !isNoneTier 一刀切判定与同文件 546 行实时行情开关判据不一致, 导致 None 档+自定义实时源用户监控页 放行、实时开关可用, 但侧边栏指数行情卡片不渲染。后端 /api/intraday/indices 从缓存读取不调 TickFlow, 对该用户有数据, 纯前端拦截导致 UI 体验不一致。 将 !isNoneTier 改为 (!isNoneTier || !!realtimeProviderName), 与实时行情开关判据对齐。 --- frontend/src/components/Layout.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/Layout.tsx b/frontend/src/components/Layout.tsx index bbda075..6614bba 100644 --- a/frontend/src/components/Layout.tsx +++ b/frontend/src/components/Layout.tsx @@ -628,7 +628,7 @@ export function Layout() { ) : null} )} - {showSidebarQuotes && !isWatchlistMode && !isNoneTier && ( + {showSidebarQuotes && !isWatchlistMode && (!isNoneTier || !!realtimeProviderName) && ( )}