作者 RuoYi

cron生成的表达式hour优化

@@ -51,6 +51,12 @@ export default { @@ -51,6 +51,12 @@ export default {
51 methods: { 51 methods: {
52 // 单选按钮值变化时 52 // 单选按钮值变化时
53 radioChange() { 53 radioChange() {
  54 + if (this.cron.min === '*') {
  55 + this.$emit('update', 'min', '0', 'hour');
  56 + }
  57 + if (this.cron.second === '*') {
  58 + this.$emit('update', 'second', '0', 'hour');
  59 + }
54 switch (this.radioValue) { 60 switch (this.radioValue) {
55 case 1: 61 case 1:
56 this.$emit('update', 'hour', '*') 62 this.$emit('update', 'hour', '*')