前端项目实战叁佰柒拾壹react-admin和material ui-Router中嵌入式路由

阅读 57

2023-11-22

<Route path='/' element={<PlantModel />}>
              
                <Route path='lineeditedit/:id' element={<LineEmpEdit />} />
              </Route>

const 
PlantModel = () => {
    return(
        <div style = {{display: 'flex', flexDirection: 'row', width: '100%'}}>
            <div style = {{width: '200px', marginRight: '10px'}}>
                <PlantTree />
            </div>
            <div style = {{width: '80%'}}>
                <Outlet/>
            </div>
        </div>
    )
}



精彩评论(0)

0 0 举报