@@ -40,10 +40,14 @@ const Page: React.FC = () => {
}).then(res => {
if (res.code === 200) {
message.success("授权成功")
+ setTimeout(() => {
+ location.href = location.origin + '/miniApp/emsCnpl/auth'
+ }, 1000)
+ }else{
+ setTimeout(()=>{
+ history.push("/miniApp/emsCnpl/auth")
+ },1000)
}
- setTimeout(()=>{
- history.push("/miniApp/emsCnpl/auth")
- },1000)
})