Skip to content

Commit 3a76714

Browse files
Ruicursoragent
andcommitted
style: fix WatchlistTab quote-copy top-level indentation
Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent e79bb2e commit 3a76714

1 file changed

Lines changed: 16 additions & 16 deletions

File tree

client-ui/src/market/WatchlistTab.tsx

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -60,24 +60,24 @@ const METRIC_COLUMNS = [
6060
{ key: 'holding', label: '持仓收益', minWidth: '68px' },
6161
] as const
6262

63-
/** 行内失败态文案 — reason → 产品级短文案 + title 提示(禁技术词) */
64-
const QUOTE_FAILED_COPY: Record<QuoteFailedReason, { label: string; hint: string }> = {
65-
no_provider: { label: '行情源未配置', hint: '在设置中添加行情源后即可查看' },
66-
unsupported: { label: '暂不支持该市场', hint: '该市场暂未开通实时行情' },
67-
empty: { label: '暂时无行情数据', hint: '可稍后刷新查看最新行情' },
68-
error: { label: '行情暂时获取失败', hint: '请稍后刷新重试' },
69-
not_found: { label: '该标的数据源暂未收录', hint: '可稍后再试,或添加其他行情源' },
70-
}
63+
/** 行内失败态文案 — reason → 产品级短文案 + title 提示(禁技术词) */
64+
const QUOTE_FAILED_COPY: Record<QuoteFailedReason, { label: string; hint: string }> = {
65+
no_provider: { label: '行情源未配置', hint: '在设置中添加行情源后即可查看' },
66+
unsupported: { label: '暂不支持该市场', hint: '该市场暂未开通实时行情' },
67+
empty: { label: '暂时无行情数据', hint: '可稍后刷新查看最新行情' },
68+
error: { label: '行情暂时获取失败', hint: '请稍后刷新重试' },
69+
not_found: { label: '该标的数据源暂未收录', hint: '可稍后再试,或添加其他行情源' },
70+
}
7171

72-
/** 整表失败时的 footer 文案 — 可操作、禁 provider/熔断等技术词 */
73-
function watchlistQuoteErrorCopy(message?: string): string {
74-
const raw = String(message ?? '')
75-
if (/|||| provider /.test(raw)) {
76-
return '行情暂时繁忙,请稍后刷新'
77-
}
78-
if (raw.includes('行情获取失败')) return '行情暂时繁忙,请稍后刷新'
79-
return '行情暂时无法更新'
72+
/** 整表失败时的 footer 文案 — 可操作、禁 provider/熔断等技术词 */
73+
function watchlistQuoteErrorCopy(message?: string): string {
74+
const raw = String(message ?? '')
75+
if (/|||| provider /.test(raw)) {
76+
return '行情暂时繁忙,请稍后刷新'
8077
}
78+
if (raw.includes('行情获取失败')) return '行情暂时繁忙,请稍后刷新'
79+
return '行情暂时无法更新'
80+
}
8181

8282
function lookupWatchlistQuote<T>(
8383
bag: Record<string, T>,

0 commit comments

Comments
 (0)