增加Scheme详细查看页面。
This commit is contained in:
parent
e7332e331b
commit
fa02a132ae
|
@ -3,6 +3,7 @@ import { Notifications } from './components/Notifications';
|
||||||
import { Home } from './pages/Home';
|
import { Home } from './pages/Home';
|
||||||
import { MainLayout } from './pages/MainLayout';
|
import { MainLayout } from './pages/MainLayout';
|
||||||
import { NewScheme } from './pages/NewScheme';
|
import { NewScheme } from './pages/NewScheme';
|
||||||
|
import { SchemeDetail } from './pages/SchemeDetail';
|
||||||
import { Schemes } from './pages/Schemes';
|
import { Schemes } from './pages/Schemes';
|
||||||
|
|
||||||
const routes = createBrowserRouter([
|
const routes = createBrowserRouter([
|
||||||
|
@ -14,7 +15,10 @@ const routes = createBrowserRouter([
|
||||||
{
|
{
|
||||||
path: 'schemes',
|
path: 'schemes',
|
||||||
element: <Schemes />,
|
element: <Schemes />,
|
||||||
children: [{ path: 'new', element: <NewScheme /> }],
|
children: [
|
||||||
|
{ path: 'new', element: <NewScheme /> },
|
||||||
|
{ path: ':id', element: <SchemeDetail /> },
|
||||||
|
],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|
3
src/pages/SchemeDetail.tsx
Normal file
3
src/pages/SchemeDetail.tsx
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
export function SchemeDetail() {
|
||||||
|
return <div></div>;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user