added extracting list fields functionality

This commit is contained in:
Marvin Zhang
2019-05-29 17:51:44 +08:00
parent 2e2b65f691
commit 925f643cd8
2 changed files with 25 additions and 3 deletions

View File

@@ -208,6 +208,9 @@ const actions = {
.then(response => {
commit('SET_PREVIEW_CRAWL_DATA', response.data.items)
})
},
extractFields ({ state, commit }) {
return request.post(`/spiders/${state.spiderForm._id}/extract_fields`)
}
}