Open chenp1204 opened 2 years ago
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. available directly to you.
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