Skip to content

Instantly share code, notes, and snippets.

@cyberdev
Created December 31, 2020 06:17
Show Gist options
  • Save cyberdev/409e64857cb3cd3dcef251be4f541f40 to your computer and use it in GitHub Desktop.
Save cyberdev/409e64857cb3cd3dcef251be4f541f40 to your computer and use it in GitHub Desktop.
Commit vuex mutation from another module
export function someAction({ commit }) {
commit(
'notify/setMessage',
{
msgType: 'negative',
msgText: 'someText'
},
{ root: true }
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment