this.props.history传值

传参:

this.props.history.push({ pathname: "/next", name: data })

取值:

this.props.location.name

你可能感兴趣的:(前端)