fix(layout): 修复 None 档+自定义实时源用户侧边栏指数行情不显示

承接 #121 review: Layout.tsx:631 的 !isNoneTier 一刀切判定与同文件
546 行实时行情开关判据不一致, 导致 None 档+自定义实时源用户监控页
放行、实时开关可用, 但侧边栏指数行情卡片不渲染。后端
/api/intraday/indices 从缓存读取不调 TickFlow, 对该用户有数据,
纯前端拦截导致 UI 体验不一致。

将 !isNoneTier 改为 (!isNoneTier || !!realtimeProviderName),
与实时行情开关判据对齐。
This commit is contained in:
intfoo
2026-07-19 13:35:36 +08:00
parent 4c85f99633
commit 91e16db547
+1 -1
View File
@@ -628,7 +628,7 @@ export function Layout() {
) : null}
</div>
)}
{showSidebarQuotes && !isWatchlistMode && !isNoneTier && (
{showSidebarQuotes && !isWatchlistMode && (!isNoneTier || !!realtimeProviderName) && (
<SidebarIndexQuotes rows={sidebarIndexQuotes?.rows} items={sidebarIndexes} />
)}
</div>