otheStore.js 281 B

1234567891011121314151617181920
  1. const otheStore = {
  2. state: {
  3. shotsNum: 0,
  4. },
  5. mutations: {
  6. SET_SHOTS_NUM: (state, value) => {
  7. state.shotsNum = value;
  8. },
  9. },
  10. actions: {
  11. setShotsNum({ commit }, value) {
  12. commit('SET_SHOTS_NUM', value);
  13. },
  14. },
  15. };
  16. export default otheStore;