Dva: {routerRedux} from 'dva/router'; 的push 不是调转??

Created on 18 Apr 2017  ·  3Comments  ·  Source: dvajs/dva

routerRedux.push('/setting');

想通过程序跳转没有实现, 请教下要如何做

Most helpful comment

Why

store.dispatch(routerRedux.push('/XXX'));

is not working?

All 3 comments

查了下, 貌似要 put, 为什么要 put 呢, 可否直接就跳转了呢

browserHistory.push('/login')

Why

store.dispatch(routerRedux.push('/XXX'));

is not working?

Was this page helpful?
0 / 5 - 0 ratings