This commit is contained in:
yj 2024-08-15 14:40:21 +08:00
parent c0eff9dc7b
commit 30ff4a1f23
1 changed files with 1 additions and 1 deletions

View File

@ -154,7 +154,7 @@ const App: React.FC = () => {
storage.setItem('stateInfo', JSON.stringify(state))
}, [state])
useEffect(() => {
if (location.href.indexOf('/login') === 1) {
if (location.href.indexOf('/login') !== -1) {
onStop()
}
}, [navigate])