quiz/store/index.js
2025-01-17 19:37:44 +05:00

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;
}
}