feat: integrate react-router-dom for routing functionality

- Added react-router-dom to package.json and pnpm-lock.yaml.
- Created a new Layout component to manage sidebar and main content.
- Implemented AppRouter for defining application routes and redirection logic.
This commit is contained in:
typist
2025-10-27 23:37:42 +08:00
parent 30637efd51
commit 818a108282
5 changed files with 107 additions and 1 deletions

View File

@@ -1,9 +1,10 @@
import { StrictMode } from 'react'
import { createRoot } from 'react-dom/client'
import './index.css'
import { AppRouter } from './router'
createRoot(document.getElementById('root')!).render(
<StrictMode>
{null}
<AppRouter />
</StrictMode>
)