const state = () => ({ supplierInfo: {}, accountType: '', }) const mutations = { SET_SUPPLIER_INFO(state, supplierInfo) { state.supplierInfo = supplierInfo }, // 微信公众号状态 SET_ACCOUNT_TYPE(state, accountType) { state.accountType = accountType }, } const actions = {} export default { namespaced: true, state, mutations, actions, }