点击路由跳转时,地址栏变化了,但是页面需要手动刷新才能变化 这是因为index.js开启了严格模式 解决:只需要把src目录下的子文件index.js中的<React.StrictMode> 删除即可正常运行