Skip to content

In @Mutation, how to call another Mutation, this.xxx is undefined #405

@chenp1204

Description

@chenp1204

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 { }

image

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions