mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-26 17:49:15 +01:00
加入教程数据统计
This commit is contained in:
34
frontend/src/store/modules/tour.js
Normal file
34
frontend/src/store/modules/tour.js
Normal file
@@ -0,0 +1,34 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user