diff --git a/src/components/DateCalendar.vue b/src/components/DateCalendar.vue index f331192e..7af98b76 100755 --- a/src/components/DateCalendar.vue +++ b/src/components/DateCalendar.vue @@ -552,7 +552,7 @@ const ok = (info: any) => { if (props.right && _time.getTime() / 100000 > start.value) { emit("setDates", _time, "right"); } - if (!(props.left && props.right)) { + if (!(props.left || props.right)) { emit("setDates", _time); } emit("ok", info === "h");