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

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