mint-ui / mint-loadmore

A two-direction mobile load-more component for vue.js
MIT License
315 stars 102 forks source link

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

Open dr2009 opened 8 years ago

dr2009 commented 8 years ago

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

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

Maopy commented 7 years ago

+1