项目场景: 配置react路由的情景当中,配置react-router的正确做法: 问题描述: [路由非精准匹配],在两个组件之间来回跳转时,想要默认某个页面 我们把它的path设为"/" 然而 此时两个组件内容都会出现在页面当中 这时该怎么解决呢? <Route path="/" component={ List} /> <Route path="/List" component={ Index} /></