mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-27 17:50:53 +01:00
加入批量运行爬虫
This commit is contained in:
@@ -212,6 +212,14 @@ const actions = {
|
||||
param: param
|
||||
})
|
||||
},
|
||||
crawlSelectedSpiders ({ state, dispatch }, payload) {
|
||||
const { taskParams, runType, nodeIds } = payload
|
||||
return request.post(`/spiders-run`, {
|
||||
task_params: taskParams,
|
||||
run_type: runType,
|
||||
node_ids: nodeIds
|
||||
})
|
||||
},
|
||||
getTaskList ({ state, commit }, id) {
|
||||
return request.get(`/spiders/${id}/tasks`)
|
||||
.then(response => {
|
||||
|
||||
Reference in New Issue
Block a user