Nuxt.js, how to call the mutation method in store in other js files?

clipboard.png

I need the js file in plugins or assets to call the mutation method add . How can I call it correctly?

Mar.04,2021

export default ({ store }) => {
    .... your code ....
}

this is official, not import
clipboard.png


this is vuex's stuff, document address

Menu