Skip to content

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

Description

@dr2009

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

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions