Refactor(Tool): Optimize use experience

Remove navigate delay. Clean out old code before setting up compile code.
This commit is contained in:
2024-04-30 15:16:16 +08:00
parent 7b61a5fdb3
commit 870204db0a
3 changed files with 12 additions and 22 deletions

View File

@@ -94,9 +94,8 @@ const View = () => {
return
}
if (username === '!' && !getLoginStatus()) {
setTimeout(() => {
navigateToRoot(navigate)
}, 3000)
void message.error('未登录')
navigateToRoot(navigate)
return
}
if (username !== '!' && ver) {