mirror of
https://github.com/shy3130/tick-stock-panel.git
synced 2026-11-02 10:26:13 +00:00
fix(analysis): 概念/行业分析 market-snapshot 接入 SSE 行情刷新 (#419)
market-snapshot 查询不在 SSE_INVALIDATE_PREFIXES 内, 盘中停留页面时 板块聚合数值(平均涨跌幅/涨跌家数/强度/龙头/成分股行情)不随行情更新, 只有手动刷新才重取。后端快照本身读最新日内缓存是活的, 缺口纯在前端 触发链路。 - SSE_INVALIDATE_PREFIXES 加入 'market-snapshot': quotes_updated 时 失效该查询, 两分析页(及成分成员对话框)打开时自动重取; 仅页面打开 才实际发请求, 推送节奏 6~60s 与看板 overview-market 同档 - 设置页「页面实时刷新」新增「概念/行业分析」开关 (未配置默认开启, 沿用 sse_refresh_pages 偏好体系)
This commit is contained in:
@@ -158,4 +158,6 @@ export const SSE_INVALIDATE_PREFIXES = [
|
|||||||
'index-quotes',
|
'index-quotes',
|
||||||
'overview-market',
|
'overview-market',
|
||||||
'limit-ladder',
|
'limit-ladder',
|
||||||
|
// 概念/行业分析的全市场快照 (#419): 后端读最新日内缓存, 行情更新后需重取,
|
||||||
|
// 否则停留页面时板块聚合数值一直停留旧值。仅两页打开时才实际发请求。
|
||||||
] as const
|
] as const
|
||||||
|
|||||||
@@ -30,6 +30,7 @@ const PAGE_LABELS: Record<string, string> = {
|
|||||||
'overview-market': '看板',
|
'overview-market': '看板',
|
||||||
watchlist: '自选页',
|
watchlist: '自选页',
|
||||||
'limit-ladder': '连板梯队',
|
'limit-ladder': '连板梯队',
|
||||||
|
'market-snapshot': '概念/行业分析',
|
||||||
}
|
}
|
||||||
|
|
||||||
const EMPTY_EMAIL_SMTP: EmailSmtpConfig = {
|
const EMPTY_EMAIL_SMTP: EmailSmtpConfig = {
|
||||||
|
|||||||
Reference in New Issue
Block a user