区间打分根据用户选择日期自动判断主力合约,放宽前端日期限制支持历史区间

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
fish
2026-05-07 21:48:20 +08:00
parent c54ba5a470
commit cdf793608d
2 changed files with 5 additions and 5 deletions

View File

@@ -67,10 +67,9 @@ function toDate(s: string) {
function isDateAllowed(d: Date): boolean {
if (!active.value) return true
const min = toDate(active.value.min_date).getTime()
const max = toDate(active.value.max_date).getTime()
const t = d.getTime()
return t >= min && t <= max
return t <= max
}
function disabledDate(d: Date) {