当前路由:http://localhost:3000/#/ask
点击 <a href="#/ask/2"></a>
跳转到:http://localhost:3000/#/ask/2,没问题
当前路由:http://localhost:3000/#/ask/2
点击 <a href="#/ask/3"></a>
跳转到:http://localhost:3000/#/ask/a...,这是为什么?
链接在代码中是 <Link to={path}></Link>
百思不得其解,求大神指点。
以上两个组件渲染出来的 html 都是
但是第一个是相对路径,第二个是绝对路径。