Merge pull request #29 from FatttSnake/fix/sign

Fix the bug that the login page gets stuck when returning to the homepage
This commit is contained in:
2024-10-31 17:45:57 +08:00
committed by GitHub
2 changed files with 4 additions and 7 deletions

View File

@@ -262,7 +262,9 @@ const SignIn = () => {
<FlexBox direction={'horizontal'} className={styles.addition}>
<a
onClick={() => {
navigateToRoot(navigate)
setTimeout(() => {
navigateToRoot(navigate)
})
}}
>

View File

@@ -19,11 +19,6 @@ export const tools: RouteJsonObject[] = [
icon: lazy(() => import('~icons/oxygen/home')),
menu: true
},
{
path: '',
absolutePath: '/',
element: <Navigate to="/store" replace />
},
{
path: 'store/:username',
absolutePath: '/store',
@@ -82,7 +77,7 @@ export const tools: RouteJsonObject[] = [
{
path: '*',
absolutePath: '*',
element: <Navigate to="/" replace />
element: <Navigate to="/store" replace />
}
]