fix(接口定义): 修复定时同步定时任务提示信息

--bug=1016261 --user=王孝刚
【接口测试】github#17263,任务状态本就是关闭,想要打开,点击后,仍然弹出“关闭任务”的弹框。
https://www.tapd.cn/55049933/s/1233142
This commit is contained in:
wxg0103 2022-08-24 17:30:50 +08:00 committed by f2c-ci-robot[bot]
parent c4bc654b28
commit 473ea57d22
1 changed files with 6 additions and 2 deletions

View File

@ -80,8 +80,12 @@ export default {
this.$emit('rowClick', row);
},
closeTaskConfirm(row) {
row.enable = !row.enable
operationConfirm(this, this.$t('api_test.home_page.running_task_list.confirm.close_title'), () => {
let message = this.$t('api_test.home_page.running_task_list.confirm.close_title');
if (row.enable) {
message = this.$t('api_test.home_page.running_task_list.confirm.open_title');
}
row.enable = !row.enable;
operationConfirm(this, message, () => {
row.enable = !row.enable
this.updateTask(row);
});