重置项目
This commit is contained in:
@@ -21,9 +21,6 @@ function kv<T>(key: string) {
|
||||
}
|
||||
|
||||
export const storage = {
|
||||
/** 主题偏好: light | dark | system */
|
||||
theme: kv<'light' | 'dark' | 'system'>('tf-theme'),
|
||||
|
||||
/** 查询轮询 / SSE 配置 */
|
||||
queryConfig: kv<unknown>('tf-stocks-query-config'),
|
||||
|
||||
@@ -94,6 +91,7 @@ export const storage = {
|
||||
entryFill: 'close_t' | 'open_t+1'
|
||||
exitFill: 'close_t' | 'open_t+1'
|
||||
fees: string
|
||||
slippage: string
|
||||
maxPositions: string
|
||||
maxExposure: string
|
||||
initialCapital: string
|
||||
@@ -110,4 +108,9 @@ export const storage = {
|
||||
|
||||
/** 行业分析页面字段配置 */
|
||||
industryAnalysisConfig: kv<Record<string, any>>('industry-analysis-config'),
|
||||
|
||||
/** 数据页画像卡片显隐 (卡片key → 是否显示) */
|
||||
dataCardVisible: kv<Record<string, boolean>>('data-card-visible'),
|
||||
/** 数据页画像卡片顺序 (卡片key 数组, 长度=卡片总数) */
|
||||
dataCardOrder: kv<string[]>('data-card-order'),
|
||||
} as const
|
||||
|
||||
Reference in New Issue
Block a user