I need the js file in plugins or assets to call the mutation method add . How can I call it correctly?
I need the js file in plugins or assets to call the mutation method add . How can I call it correctly?
export default ({ store }) => {
.... your code ....
}
this is official, not import
this is vuex's stuff, document address
Previous: Vscode could not download the plug-in
Next: Can I get the data attribute of a Vue instance at one time in Vue.js?