Refacotr: 추가한 Home 컴포넌트 라우터에 적용
This commit is contained in:
parent
ed15f4df4a
commit
598f8d841c
@ -1,7 +1,9 @@
|
||||
import PageLayout from '@/components/PageLayout';
|
||||
import Home from '@/components/Home';
|
||||
import WorkspaceBrowseDetail from '@/components/WorkspaceBrowseDetail';
|
||||
import WorkspaceBrowseLayout from '@/components/WorkspaceBrowseLayout';
|
||||
import WorkspaceLayout from '@/components/WorkspaceLayout';
|
||||
|
||||
import { createBrowserRouter } from 'react-router-dom';
|
||||
|
||||
export const webPath = {
|
||||
@ -17,7 +19,7 @@ const router = createBrowserRouter([
|
||||
children: [
|
||||
{
|
||||
index: true,
|
||||
element: <div>home</div>,
|
||||
element: <Home />,
|
||||
},
|
||||
],
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user