Skip to content

Commit 2bb9c12

Browse files
committed
fix: keep no specific value
1 parent dcb7396 commit 2bb9c12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/components/cron-core.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ export function useCron(options: CronOptions) {
174174
const toCron = () => {
175175
cron.value = segments
176176
.map((s) => {
177-
return period.value.value.includes(s.id) ? s.cron.value : '*'
177+
return period.value.value.includes(s.id) || s.cron.value == '?' ? s.cron.value : '*'
178178
})
179179
.join(' ')
180180
}

0 commit comments

Comments
 (0)