Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
dr2009 opened this issue Sep 19, 2016 · 1 comment
Open

Comments

@dr2009
Copy link

dr2009 commented Sep 19, 2016

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

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

@Maopy
Copy link

Maopy commented Oct 10, 2016

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants