From 5d8172a11751c44212d3b784c122e1d0c6f10946 Mon Sep 17 00:00:00 2001 From: RuoYi Date: Mon, 1 Jul 2024 16:16:35 +0800 Subject: [PATCH] =?UTF-8?q?cron=E7=94=9F=E6=88=90=E7=9A=84=E8=A1=A8?= =?UTF-8?q?=E8=BE=BE=E5=BC=8Fhour=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Crontab/hour.vue | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/components/Crontab/hour.vue b/src/components/Crontab/hour.vue index ad3fa67..23e6d50 100644 --- a/src/components/Crontab/hour.vue +++ b/src/components/Crontab/hour.vue @@ -77,6 +77,12 @@ const checkboxString = computed(() => { watch(() => props.cron.hour, value => changeRadioValue(value)) watch([radioValue, cycleTotal, averageTotal, checkboxString], () => onRadioChange()) function changeRadioValue(value) { + if (props.cron.min === '*') { + emit('update', 'min', '0', 'hour'); + } + if (props.cron.second === '*') { + emit('update', 'second', '0', 'hour'); + } if (value === '*') { radioValue.value = 1 } else if (value.indexOf('-') > -1) {