<Admin dataProvider={dataProvider} layout={appLayout} i18nProvider={i18nProvider} > <Resource name='t_order' list={OrderList} create={OrderCreate} edit={OrderEdit} /> {/* <Resource name='t_prod_category' list={ CategoryList } /> */} <Resource name = 't_prod_style' list = {ListGuesser} /> <CustomRoutes> <Route path = "mydemo/*" element = {<MyDemo/>} /> </CustomRoutes> </Admin>
运行结果