mirror of
https://ghfast.top/https://github.com/aeroxw/tick-stock-panel.git
synced 2026-09-12 19:04:15 +08:00
fix(layout): 修复 None 档+自定义实时源用户侧边栏指数行情不显示
承接 #121 review: Layout.tsx:631 的 !isNoneTier 一刀切判定与同文件 546 行实时行情开关判据不一致, 导致 None 档+自定义实时源用户监控页 放行、实时开关可用, 但侧边栏指数行情卡片不渲染。后端 /api/intraday/indices 从缓存读取不调 TickFlow, 对该用户有数据, 纯前端拦截导致 UI 体验不一致。 将 !isNoneTier 改为 (!isNoneTier || !!realtimeProviderName), 与实时行情开关判据对齐。
This commit is contained in:
@@ -628,7 +628,7 @@ export function Layout() {
|
||||
) : null}
|
||||
</div>
|
||||
)}
|
||||
{showSidebarQuotes && !isWatchlistMode && !isNoneTier && (
|
||||
{showSidebarQuotes && !isWatchlistMode && (!isNoneTier || !!realtimeProviderName) && (
|
||||
<SidebarIndexQuotes rows={sidebarIndexQuotes?.rows} items={sidebarIndexes} />
|
||||
)}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user