Browse Source

cron生成的表达式hour优化

master
RuoYi 1 year ago
parent
commit
5b98495067
  1. 6
      ruoyi-ui/src/components/Crontab/hour.vue

6
ruoyi-ui/src/components/Crontab/hour.vue

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

Loading…
Cancel
Save