嵌套路由 代码实现 1.定义嵌套路由声明 //代码示例 <Route path='/' element={ <Layout />}> //此时声明Board与Article为Layout 的嵌套路由 <Route path='Board' element={ <Board /