vuejs / vuex

🗃️ Centralized State Management for Vue.js.
https://vuex.vuejs.org
MIT License
28.42k stars 9.57k forks source link

when vuex4.0 use modules the commit of mutation was error #1832

Closed devin-huang closed 4 years ago

devin-huang commented 4 years ago

Vuex.createStore({ modules : { namespaced:true, test: state: { name: "test", }, mutations: { changeTest(state, name ) { state.name = name ; }, }, actions: { findTest({commit}) { commit('changeTest', 'sss') } } }, });

vue-bot commented 4 years ago

Hello, thank you for taking time filling this issue!

However, we kindly ask you to use our Issue Helper when creating new issues, in order to ensure every issue provides the necessary information for us to investigate. This explains why your issue has been automatically closed by me (your robot friend!).

I hope to see your helper-created issue very soon!