mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-29 18:00:51 +01:00
added batch delete schedules
This commit is contained in:
@@ -26,14 +26,13 @@ const actions = {
|
||||
getScheduleList({ state, commit }) {
|
||||
request.get('/schedules')
|
||||
.then(response => {
|
||||
if (response.data.data) {
|
||||
commit('SET_SCHEDULE_LIST', response.data.data.map(d => {
|
||||
const arr = d.cron.split(' ')
|
||||
arr.splice(0, 1)
|
||||
d.cron = arr.join(' ')
|
||||
return d
|
||||
}))
|
||||
}
|
||||
if (!response.data.data) response.data.data = []
|
||||
commit('SET_SCHEDULE_LIST', response.data.data.map(d => {
|
||||
const arr = d.cron.split(' ')
|
||||
arr.splice(0, 1)
|
||||
d.cron = arr.join(' ')
|
||||
return d
|
||||
}))
|
||||
})
|
||||
},
|
||||
addSchedule({ state }) {
|
||||
|
||||
Reference in New Issue
Block a user