diff --git a/frontend/src/business/components/performance/test/EditPerformanceTest.vue b/frontend/src/business/components/performance/test/EditPerformanceTest.vue index 42614537da..2492bd0466 100644 --- a/frontend/src/business/components/performance/test/EditPerformanceTest.vue +++ b/frontend/src/business/components/performance/test/EditPerformanceTest.vue @@ -447,7 +447,6 @@ export default { }); }, saveCronExpression(cronExpression) { - this.test.schedule.enable = true; this.test.schedule.value = cronExpression; this.saveSchedule(); }, @@ -466,6 +465,9 @@ export default { let url = '/performance/schedule/create'; if (param.id) { url = '/performance/schedule/update'; + } else { + // 创建定时任务,初始化是开启状态 + this.test.schedule.enable = true; } this.$post(url, param, response => { this.$success(this.$t('commons.save_success'));