dva如何获取全局的dispatch

Created on 14 Mar 2017  ·  1Comment  ·  Source: dvajs/dva

如题?

Most helpful comment

把app设置成全局变量就可以了, app._store.dispatch

>All comments

把app设置成全局变量就可以了, app._store.dispatch

Was this page helpful?
0 / 5 - 0 ratings