Преглед на файлове

fix: 单点登录跳转

Wzyyy98 преди 3 години
родител
ревизия
c16cf9e415
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 2 1
      src/pages/account/Center/bind/index.tsx

+ 2 - 1
src/pages/account/Center/bind/index.tsx

@@ -43,7 +43,8 @@ const Bind = () => {
     const redirectUrl = urlParams.get('redirect') || window.location.href.split('redirect=')?.[1];
     // const url = window.location.href.split('redirect=')?.[1];
     console.log(redirectUrl);
-    if (redirectUrl) {
+    //内部集成需要跳回它们页面
+    if (redirectUrl && redirectUrl.indexOf('account/center/bind') === -1) {
       window.location.href = decodeURIComponent(redirectUrl);
     }
   };