我從A頁面帶參數跳轉到B頁面this.props.history.push({ pathname: '/send_msg', state: { query: obj } })此時在B頁面能取到this.props.location.state但是刷新B頁面,this.props.location.state就變成了undefined,求解如何處理?
hashrouter刷新報錯,this.props.location.state為undefined
慕蓋茨4494581
2019-02-15 11:58:41