Code in main.js
store.commit("recruitmentArr", recruitmentArr);
Code in mutations.js
import * as types from "./mutation-types"
export default {
[types.recruitmentArr] (state, val) {
state.account = val
}
}
Code in mutation-types.js
export const recruitmentArr = "recruitmentArr"