React 页面跳转传值

页面跳转传值:value

router.push({ pathname: '/list', state: value });


list页面取值:
const { location: { state } } = this.props;

posted @ 2021-07-21 11:46  94cool  阅读(77)  评论(0)    收藏  举报