diff --git a/packages/fineui/src/core/2.base.js b/packages/fineui/src/core/2.base.js index 0c8e5f61c..23fc68095 100644 --- a/packages/fineui/src/core/2.base.js +++ b/packages/fineui/src/core/2.base.js @@ -1227,19 +1227,19 @@ export function checkDateVoid(YY, MM, DD, minDate, maxDate) { } else if (YY > maxDate[0]) { back = ["y", 1]; } else if (YY >= minDate[0] && YY <= maxDate[0]) { - if (YY === minDate[0]) { + if (YY == minDate[0]) { if (MM < minDate[1]) { back = ["m"]; - } else if (MM === minDate[1]) { + } else if (MM == minDate[1]) { if (DD < minDate[2]) { back = ["d"]; } } } - if (YY === maxDate[0]) { + if (YY == maxDate[0]) { if (MM > maxDate[1]) { back = ["m", 1]; - } else if (MM === maxDate[1]) { + } else if (MM == maxDate[1]) { if (DD > maxDate[2]) { back = ["d", 1]; }