Skip to content

在vuex的action中, 如何触发this.$broadcast('onTopLoaded', id); #16

@dr2009

Description

@dr2009

本来没有啥问题。后来引入vuex后,如何在action触发this.$broadcast('onTopLoaded', id);??

目前做法是action加入promise, 在method中包装action,then触发$broadcast,但是感觉不合理

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions