mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-28 17:50:56 +01:00
优化可配置爬虫前端界面
This commit is contained in:
@@ -43,12 +43,7 @@ const actions = {
|
||||
commit('SET_FILE_CONTENT', response.data.data)
|
||||
})
|
||||
},
|
||||
saveFileContent ({ state, rootState }, payload) {
|
||||
const { path } = payload
|
||||
const spiderId = rootState.spider.spiderForm._id
|
||||
const content = state.fileContent
|
||||
return request.post(`/spiders/${spiderId}/file`, { content, path })
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
export default {
|
||||
|
||||
Reference in New Issue
Block a user