RuoYi
2024-06-25 5b9849506756b62f3f958faf0b2a8110310031e8
cron生成的表达式hour优化
已修改1个文件
10 ■■■■ 文件已修改
ruoyi-ui/src/components/Crontab/hour.vue 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-ui/src/components/Crontab/hour.vue
@@ -51,10 +51,16 @@
    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;