加入重试

This commit is contained in:
marvzhang
2020-03-29 15:45:25 +08:00
parent 917e2d1735
commit 1ddeaef69b
7 changed files with 99 additions and 7 deletions

View File

@@ -142,6 +142,12 @@ const actions = {
ids: ids
})
},
restartTask ({ state, dispatch }, id) {
return request.post(`/tasks/${id}/restart`)
.then(() => {
dispatch('getTaskList')
})
},
getTaskLog ({ state, commit }, id) {
return request.get(`/tasks/${id}/log`)
.then(response => {