31 lines
506 B
JavaScript
31 lines
506 B
JavaScript
export const state = () => ({
|
|
step: 31,
|
|
type: "",
|
|
reason: "",
|
|
eft: {},
|
|
})
|
|
|
|
export const getters = {
|
|
selectStep: (state) => state.step,
|
|
selectType: (state) => state.type,
|
|
selectReason: (state) => state.reason,
|
|
selectEft: (state) => state.eft,
|
|
}
|
|
|
|
export const mutations = {
|
|
nextPage(state) {
|
|
state.step++
|
|
},
|
|
|
|
setType(state, action) {
|
|
state.type = action;
|
|
},
|
|
|
|
setReason(state, action) {
|
|
state.reason = action;
|
|
},
|
|
|
|
setEft(state, action) {
|
|
state.eft = action;
|
|
}
|
|
} |