fix: every day without hour

This commit is contained in:
2026-08-02 09:04:15 +02:00
parent d8c7cc498d
commit eea6825ac7
2 changed files with 1 additions and 15 deletions
-14
View File
@@ -114,20 +114,6 @@ watch(cron, () => {
{{ $t("cron.type.one_time") }} {{ $t("cron.type.one_time") }}
</option> </option>
</select> </select>
<select
v-if="cronType === CronType.EVERY_DAY"
v-model="cronValue"
class="select flex-1"
@change="onChangeCronValue"
>
<option
v-for="i in Array.from(Array(24).keys())"
:key="`h${i + 1}`"
:value="i"
>
{{ i.toFixed(0).padStart(2, "0") }}:00
</option>
</select>
<select <select
v-if="cronType === CronType.EVERY_WEEK" v-if="cronType === CronType.EVERY_WEEK"
v-model="cronValue" v-model="cronValue"
+1 -1
View File
@@ -128,7 +128,7 @@ export function getCron(
case CronType.ONE_TIME: case CronType.ONE_TIME:
return ONE_TIME_VALUE; return ONE_TIME_VALUE;
case CronType.EVERY_DAY: case CronType.EVERY_DAY:
return `0 ${value.toFixed(0)} * * *`; return `0 0 * * *`;
case CronType.EVERY_WEEK: case CronType.EVERY_WEEK:
return `0 0 * * ${value.toFixed(0)}`; return `0 0 * * ${value.toFixed(0)}`;
case CronType.EVERY_MONTH: case CronType.EVERY_MONTH: