shenwu 5 months ago
parent
commit
60e882741b
1 changed files with 7 additions and 3 deletions
  1. 7 3
      src/pages/MiniApp/EmsCnpl/Auth/index.tsx

+ 7 - 3
src/pages/MiniApp/EmsCnpl/Auth/index.tsx

@@ -40,10 +40,14 @@ const Page: React.FC = () => {
                 }).then(res => {
                 }).then(res => {
                     if (res.code === 200) {
                     if (res.code === 200) {
                         message.success("授权成功")
                         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)
                 })
                 })
             }
             }
         }
         }