瀏覽代碼

framelogin 用户切换问题

huiqi 3 月之前
父節點
當前提交
e4f6b90bbc
共有 1 個文件被更改,包括 5 次插入4 次删除
  1. 5 4
      app/components/home.tsx

+ 5 - 4
app/components/home.tsx

@@ -404,7 +404,7 @@ export function Home() {
         jkLogin({ code: code, redirectUrl: encodeURIComponent(originUrl) }, state);
       }
     } else {
-      if (!userInfo) {
+
         //判断是否是frame方式联登/frame
         if (fullUrl.includes(originUrl + '/?frame=Y')) {
 
@@ -436,9 +436,10 @@ export function Home() {
           },originUrl,fullUrl);
 
         } else {
-          toUninLogin(originUrl,fullUrl);
+          if (!userInfo) {
+            toUninLogin(originUrl, fullUrl);
+          }
         }
-      }
     }
   }, []);
 
@@ -453,4 +454,4 @@ export function Home() {
       </Router>
     </ErrorBoundary>
   );
-}
+}