cron生成的表达式hour优化

This commit is contained in:
RuoYi 2024-06-25 12:02:23 +08:00
parent 259dc67728
commit 5b98495067

View File

@ -51,10 +51,16 @@ export default {
methods: {
//
radioChange() {
if (this.cron.min === '*') {
this.$emit('update', 'min', '0', 'hour');
}
if (this.cron.second === '*') {
this.$emit('update', 'second', '0', 'hour');
}
switch (this.radioValue) {
case 1:
this.$emit('update', 'hour', '*')
break;
this.$emit('update', 'hour', '*')
break;
case 2:
this.$emit('update', 'hour', this.cycleTotal);
break;