{"action":"closed","issue":{"url":"https://api.github.com/repos/vuejs/vuex/issues/172","repository_url":"https://api.github.com/repos/vuejs/vuex","labels_url":"https://api.github.com/repos/vuejs/vuex/issues/172/labels{/name}","comments_url":"https://api.github.com/repos/vuejs/vuex/issues/172/comments","events_url":"https://api.github.com/repos/vuejs/vuex/issues/172/events","html_url":"https://github.com/vuejs/vuex/issues/172","id":153577055,"number":172,"title":"多个mutations模块组合时如何分发mutations?","user":{"login":"zhangfisher","id":2050579,"avatar_url":"https://avatars.githubusercontent.com/u/2050579?v=3","gravatar_id":"","url":"https://api.github.com/users/zhangfisher","html_url":"https://github.com/zhangfisher","followers_url":"https://api.github.com/users/zhangfisher/followers","following_url":"https://api.github.com/users/zhangfisher/following{/other_user}","gists_url":"https://api.github.com/users/zhangfisher/gists{/gist_id}","starred_url":"https://api.github.com/users/zhangfisher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhangfisher/subscriptions","organizations_url":"https://api.github.com/users/zhangfisher/orgs","repos_url":"https://api.github.com/users/zhangfisher/repos","events_url":"https://api.github.com/users/zhangfisher/events{/privacy}","received_events_url":"https://api.github.com/users/zhangfisher/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-07T06:19:18Z","updated_at":"2016-05-07T16:32:23Z","closed_at":"2016-05-07T16:32:23Z","body":"使用vuex时，定义mutations时，如果使用定义了两个\r\nmutationA={M1....}\r\nmutationB={M2....}\r\n然后在使用这两个mutations时，这样写：\r\n mutations: [mutationA, mutationB]\r\n这样问题来了，如果要分发M1该怎么写？\r\n如果直接dispatch(\"M1\")会提示没有定义M1\r\n"}}