vuex-module-decorators
vuex-module-decorators copied to clipboard
In @Mutation, how to call another Mutation, this.xxx is undefined
My environment vue 2.6.13 vuex 3.6.0 vuex-module-decorators 2.0.0
Hi, @championswimmer ,
@Module({ dynamic: true, namespaced: true, name: 'editor', store, }) class EditorModule extends VuexModule { }
i want to call another Mutation in a Mutation, but this.deleteComponent and this.addComponent is undefined, i found this only has properties but no Mutation functions and this.context also undefined
You should not need to call one mutation from other as you have this.