ソースを参照

F 前端 修复任务的触发器设置无法清除生效时间的问题

雷二猛 7 年 前
コミット
461fe0ca0a
1 ファイル変更2 行追加2 行削除
  1. 2 2
      spug_web/src/components/schedule/JobSetting.vue

+ 2 - 2
spug_web/src/components/schedule/JobSetting.vue

@@ -107,7 +107,7 @@
                     form['trigger_args'] += this.handleCronArgs(this.cron_trigger_args.hour);  //hour
                     form['trigger_args'] += this.handleCronArgs(this.cron_trigger_args.minute);  //minute
                     form['trigger_args'] += ';';  //second
-                    if (this.cron_trigger_args.range.length) {
+                    if (this.cron_trigger_args.range && this.cron_trigger_args.range.length) {
                         form['trigger_args'] += this.cron_trigger_args.range[0].format() + ';'; //start_date
                         form['trigger_args'] += this.cron_trigger_args.range[1].format()    //end_date
                     } else {
@@ -151,4 +151,4 @@
             }
         }
     }
-</script>
+</script>