React 项目使用 React-router-dom 4.0 以上版本时使用 HashRouter 怎么控制 history

匿名 (未验证) 提交于 2019-12-02 22:56:40
Warning: Hash history cannot PUSH the same path; a new entry will not be added to the history stack
import createBrowserHistory from "history/createBrowserHistory"; const customHistory = createBrowserHistory();  <Router history  = {customHistory} />
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!