一般参数都是从nextState中拿到的,试试下面的这个吧
nextState
replace(`/routes/PatientInfo/${nextState.params.id}`)
548k questions
547k answers
4 comments
86.3k users