mutations.js 228 B

1234567
  1. import * as types from './mutation_type';//引入变量
  2. export default {
  3. //types.VUEX_TEST 代表接受哪个actions的commit 也就是上面引入变量的作用
  4. [types.VUEX_TEST](state){
  5. state.count++
  6. }
  7. };