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:
@@ -262,7 +262,9 @@ const SignIn = () => {
|
||||
<FlexBox direction={'horizontal'} className={styles.addition}>
|
||||
<a
|
||||
onClick={() => {
|
||||
navigateToRoot(navigate)
|
||||
setTimeout(() => {
|
||||
navigateToRoot(navigate)
|
||||
})
|
||||
}}
|
||||
>
|
||||
返回主页
|
||||
|
||||
@@ -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 />
|
||||
}
|
||||
]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user