瀏覽代碼

fix bug

master
Anna Ho 1 年之前
父節點
當前提交
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 />
);


Loading…
取消
儲存