摘要: Connect传递Model中的数据给router 比如model中定义的login.js 定义了state数据,那么在router组件中怎么获取到这个数据呢? 通过connect可以传递过来,然后通过this.props就可以访问了,同样也会将dispatch(可以发送请求到model去),his 阅读全文
posted @ 2020-08-13 14:48 雪莉06 阅读(1183) 评论(0) 推荐(0) 编辑