mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-25 17:42:25 +01:00
added stop task
This commit is contained in:
@@ -57,6 +57,12 @@ const actions = {
|
||||
dispatch('getTaskList')
|
||||
})
|
||||
},
|
||||
stopTask ({ state, dispatch }, id) {
|
||||
return request.post(`/tasks/${id}/stop`)
|
||||
.then(() => {
|
||||
dispatch('getTaskList')
|
||||
})
|
||||
},
|
||||
getTaskLog ({ state, commit }, id) {
|
||||
return request.get(`/tasks/${id}/get_log`)
|
||||
.then(response => {
|
||||
|
||||
Reference in New Issue
Block a user