mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-25 17:42:25 +01:00
35 lines
562 B
Go
35 lines
562 B
Go
const state = {
|
|
tourFinishSteps: {
|
|
'spider-list': 3,
|
|
'spider-list-add': 8,
|
|
'spider-detail': 9,
|
|
'spider-detail-config': 12,
|
|
'task-list': 4,
|
|
'task-detail': 7,
|
|
'node-detail': 4,
|
|
'schedule-list': 1,
|
|
'schedule-list-add': 8,
|
|
'setting': 2
|
|
},
|
|
tourSteps: {}
|
|
}
|
|
|
|
const getters = {}
|
|
|
|
const mutations = {
|
|
SET_TOUR_STEP: (state, payload) => {
|
|
const { tourName, step } = payload
|
|
state.tourSteps[tourName] = step
|
|
}
|
|
}
|
|
|
|
const actions = {}
|
|
|
|
export default {
|
|
namespaced: true,
|
|
state,
|
|
getters,
|
|
mutations,
|
|
actions
|
|
}
|