fix(admin): add basename to BrowserRouter for /admin/ deployment

The router needs basename="/admin" to work correctly when deployed
under the /admin/ subpath.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
hailin 2026-01-10 07:50:22 -08:00
parent cb0b8c6ea9
commit 731323ad7c
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ ReactDOM.createRoot(document.getElementById('root')!).render(
}, },
}} }}
> >
<BrowserRouter> <BrowserRouter basename="/admin">
<App /> <App />
</BrowserRouter> </BrowserRouter>
</ConfigProvider> </ConfigProvider>