diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index a5a56ca..49ba445 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -92,6 +92,7 @@ function App() { } }).catch( err => setError(err.toString())) setLoadingBtn(false) + form.reset() } @@ -119,12 +120,14 @@ function App() { setLoadingBtn(true) await login(values).then(res => { if(!res){ + queryClient.invalidateQueries() setSystemStatus({...systemStatus, loggined:true}) }else{ setError("Login failed") } }).catch( err => setError(err.toString())) setLoadingBtn(false) + form.reset() }