用react router 定义的路由在浏览器上面显示都会带有一个#和hash值如下:
怎么去掉#和后面的hash值改成localhost:8080/dist/joinus
这样的形式呢?
你用的是HashHistory,改成BrowserHistory
参见:
https://github.com/reactjs/react-router/blob/latest/docs/guides/Histories.md
用react router 定义的路由在浏览器上面显示都会带有一个#和hash值如下:
怎么去掉#和后面的hash值改成localhost:8080/dist/joinus
这样的形式呢?
你用的是HashHistory,改成BrowserHistory
参见:
https://github.com/reactjs/react-router/blob/latest/docs/guides/Histories.md