perf: 终断任务按钮状态变化优化

This commit is contained in:
wangruidong
2024-02-27 16:07:08 +08:00
committed by w940853815
parent b35b5bd774
commit 55dfa5889b

View File

@@ -456,6 +456,9 @@ export default {
StopJob({ task_id: this.currentTaskId }).then(() => {
this.xterm.write(this.wrapperError('Task has been canceled'))
this.getTaskStatus()
}).catch((e) => {
console.log(e)
}).finally(() => {
this.setStopBtn()
})
},