Anna Ho 1 год назад
Родитель
Сommit
fd871f97af
2 измененных файлов: 14 добавлений и 3 удалений
  1. +3
    -0
      src/pages/iAmSmart/AuthCallback/index.js
  2. +11
    -3
      src/pages/iAmSmart/RegistryCallback/index.js

+ 3
- 0
src/pages/iAmSmart/AuthCallback/index.js Просмотреть файл

@@ -56,8 +56,11 @@ const Index = () => {
},
onError:(error)=>{
console.log(error);
window.location.assign("/iamsmart/loginFail");
}
});
}else{
window.location.assign("/iamsmart/loginFail");
}
}



+ 11
- 3
src/pages/iAmSmart/RegistryCallback/index.js Просмотреть файл

@@ -27,14 +27,22 @@ const Index = () => {
},
onSuccess: (responseData) => {
navigate('/iAmSmartRegisterFrom', { state: { responseData: responseData } });
},
onFail: (response)=>{
console.log("Fail");
console.log(response);
window.location.assign("/register");
},
onError:(error)=>{
console.log(error);
window.location.assign("/register");
}
});
}else{
window.location.assign("/register");
}
}



return (
<LoadingComponent />
);


Загрузка…
Отмена
Сохранить