区间打分根据用户选择日期自动判断主力合约,放宽前端日期限制支持历史区间
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user