Created
December 31, 2020 06:17
-
-
Save cyberdev/409e64857cb3cd3dcef251be4f541f40 to your computer and use it in GitHub Desktop.
Commit vuex mutation from another module
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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