react 用history 进行路由跳转。地址拦发生了改变,但是页面没有更新?

react 用history 进行路由跳转。地址拦发生了改变,但是页面没有更新?
import { createBrowserHistory } from 'history'

const history = createBrowserHistory()

history.push({pathname:this.state.jumpTo})

阅读 4.9k
1 个回答
新手上路,请多包涵

history.go()
跳转之后加上这句代码可以实现跳转。
不知道你最后的解决办法是什么?

推荐问题