Przeglądaj źródła

Merge branch 'app-permission' of https://git.zyuas.com/LLM/chat-client-web into dev

* 'app-permission' of https://git.zyuas.com/LLM/chat-client-web:
  framelogin 用户切换问题
Ryuiso 5 miesięcy temu
rodzic
commit
c82bd86753
1 zmienionych plików z 5 dodań i 4 usunięć
  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);
         jkLogin({ code: code, redirectUrl: encodeURIComponent(originUrl) }, state);
       }
       }
     } else {
     } else {
-      if (!userInfo) {
+
         //判断是否是frame方式联登/frame
         //判断是否是frame方式联登/frame
         if (fullUrl.includes(originUrl + '/?frame=Y')) {
         if (fullUrl.includes(originUrl + '/?frame=Y')) {
 
 
@@ -436,9 +436,10 @@ export function Home() {
           },originUrl,fullUrl);
           },originUrl,fullUrl);
 
 
         } else {
         } else {
-          toUninLogin(originUrl,fullUrl);
+          if (!userInfo) {
+            toUninLogin(originUrl, fullUrl);
+          }
         }
         }
-      }
     }
     }
   }, []);
   }, []);
 
 
@@ -453,4 +454,4 @@ export function Home() {
       </Router>
       </Router>
     </ErrorBoundary>
     </ErrorBoundary>
   );
   );
-}
+}