chao hai 10 meses
pai
achega
4c1b8bf363
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      src/view/login.js

+ 2 - 2
src/view/login.js

@@ -63,12 +63,12 @@ function Login(props) {
         axios.defaults.withCredentials = true;
         axios.post(`${config.api}api/user`, qs.stringify(params)).then(res => {
             clearInterval(progressTimer)
+            setProgressValue(100)
             if (res.data.length > 0) {
-                setProgressValue(100)
+                setLoading(false)
                 showAlert(props.lang.loginSuccess)
                 setAlertShow(true)
                 setTimeout(() => {
-                    setLoading(false)
                     setProgressValue(0)
                     setAlertShow(false)
                     postMessageToParent('loginVerify', 'logged', res.data[0][0])