fix(任务中心): 有执行中的任务时实时刷新任务状态 #1005172

--bug=1005172 --user=赵勇 批量执行时 立刻弹出任... https://www.tapd.cn/55049933/s/1025652
This commit is contained in:
fit2-zhao 2021-07-16 19:43:36 +08:00 committed by fit2-zhao
parent bf7b6cd257
commit 888bf1d3f8
1 changed files with 3 additions and 0 deletions

View File

@ -153,6 +153,9 @@ export default {
onMessage(e) {
let taskTotal = e.data;
this.runningTotal = taskTotal;
if (this.taskVisible) {
this.init();
}
},
onClose(e) {
if (e.code === 1005) {