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 95643875c1
commit 4318654277
1 changed files with 3 additions and 1 deletions

View File

@ -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'));