From 3cf31828e0a2c82edf11539f9c28aeeb58241ace Mon Sep 17 00:00:00 2001 From: insistence <3055204202@qq.com> Date: Mon, 15 Jul 2024 14:37:40 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20cron=E7=94=9F=E6=88=90=E7=9A=84?= =?UTF-8?q?=E8=A1=A8=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 --- ruoyi-fastapi-frontend/src/components/Crontab/hour.vue | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ruoyi-fastapi-frontend/src/components/Crontab/hour.vue b/ruoyi-fastapi-frontend/src/components/Crontab/hour.vue index 6e9f27e..8e7c21c 100644 --- a/ruoyi-fastapi-frontend/src/components/Crontab/hour.vue +++ b/ruoyi-fastapi-frontend/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) {