10 changed files with 213 additions and 135 deletions
@ -0,0 +1,22 @@ |
|||
const state = { |
|||
chooseName: "金湖路社区", |
|||
}; |
|||
|
|||
const mutations = { |
|||
CHOOSE_NAME: (state, name) => { |
|||
state.chooseName = name; |
|||
}, |
|||
}; |
|||
|
|||
const actions = { |
|||
chooseName({ commit }, name) { |
|||
commit("CHOOSE_NAME", name); |
|||
}, |
|||
}; |
|||
|
|||
export default { |
|||
namespaced: true, |
|||
state, |
|||
mutations, |
|||
actions, |
|||
}; |
Loading…
Reference in new issue