缓存字段和简历字段冲突时的逻辑优化

This commit is contained in:
2026-07-31 19:38:47 +08:00
parent 0c8193d230
commit 07ba286d34
3 changed files with 120 additions and 14 deletions
+3 -3
View File
@@ -8,9 +8,9 @@ export type DelayLevel = "low" | "mid" | "high" | "max"
/** 各等级对应的毫秒数(统一在此处调整) */
const DELAY_MS: Record<DelayLevel, number> = {
low: 10, // <100ms 场景:微等待,点击后极短暂停
mid: 50, // 100~300ms 场景:等待 DOM 更新、弹出层渲染
high: 500, // >300ms 场景:等待接口返回、搜索结果、动画完成
low: 10, // <100ms 场景:微等待,点击后极短暂停
mid: 30, // 100~300ms 场景:等待 DOM 更新、弹出层渲染
high: 500, // >300ms 场景:等待接口返回、搜索结果、动画完成
max: 2000, // >2000ms 场景:特殊超长延时(谨慎使用)
}