chencheng (云谦)

Results 248 comments of chencheng (云谦)

`routerRedux.push()` 返回的是 action,然后把他让 dispatch 调用下就可以切换路由了。

@linyongping [email protected] ? 到 0.7 主要是工具的变动,要换到 roadhog,可以参考 https://github.com/sorrycc/blog/issues/17 。

@llqgit 参考 https://github.com/sorrycc/blog/issues/17 切换到 roadhog,然后 `PORT=8001 npm start` 就好了。

@MelissaHu 注意格式,参考 https://github.com/dvajs/dva-example-user-dashboard/blob/d6da33b/.roadhogrc#L20-L23

@TFous 如果是用的 browserHistory,打包后需要放根目录路由才会匹配到。

@leduold reducer 的第二个参数,或者 effect 的第一个参数就是 action,详见 [API 文档](https://github.com/dvajs/dva/blob/master/docs/API_zh-CN.md#reducers)。

@FEliuyg 放在 routes 里只能一层层传下去,层级多了很麻烦,修改、新增都麻烦。

@FEliuyg 看个人喜好吧,我是实用主义者。。不能接受太麻烦的事情。