fix(性能测试): 修复在弹框中修改定时任务状态不生效的问题

--bug=1016782 --user=刘瑞斌 【性能测试】github #17904,定时任务配置页关闭定时任务后刷新页面定时任务变成开启状态 https://www.tapd.cn/55049933/s/1251868

Closes #17904
This commit is contained in:
CaptainB 2022-09-26 11:41:37 +08:00 committed by f2c-ci-robot[bot]
parent 8a68170f1d
commit 6607266aaa
1 changed files with 3 additions and 1 deletions

View File

@ -447,7 +447,6 @@ export default {
}); });
}, },
saveCronExpression(cronExpression) { saveCronExpression(cronExpression) {
this.test.schedule.enable = true;
this.test.schedule.value = cronExpression; this.test.schedule.value = cronExpression;
this.saveSchedule(); this.saveSchedule();
}, },
@ -466,6 +465,9 @@ export default {
let url = '/performance/schedule/create'; let url = '/performance/schedule/create';
if (param.id) { if (param.id) {
url = '/performance/schedule/update'; url = '/performance/schedule/update';
} else {
//
this.test.schedule.enable = true;
} }
this.$post(url, param, response => { this.$post(url, param, response => {
this.$success(this.$t('commons.save_success')); this.$success(this.$t('commons.save_success'));