Refactor(Router): Change home to repository

Change home route to repository. Switch repository and store place in menu.
This commit is contained in:
2024-04-25 22:54:04 +08:00
parent 9de8b16c86
commit 2cd74d0027
9 changed files with 38 additions and 42 deletions

View File

@@ -49,7 +49,7 @@ const Source = () => {
case DATABASE_NO_RECORD_FOUND:
void message.error('未找到指定工具')
setTimeout(() => {
navigate('/')
navigate('/repository')
}, 3000)
break
default:
@@ -65,7 +65,7 @@ const Source = () => {
useEffect(() => {
if (username === '!' && !getLoginStatus()) {
setTimeout(() => {
navigate('/')
navigate('/repository')
}, 3000)
return
}
@@ -78,7 +78,7 @@ const Source = () => {
return
}
if (!['WEB', 'DESKTOP', 'ANDROID'].includes(searchParams.get('platform')!)) {
navigate('/')
navigate('/repository')
return
}
getTool()