Ryuiso il y a 1 mois
Parent
commit
4b2e4e40d0
1 fichiers modifiés avec 7 ajouts et 10 suppressions
  1. 7 10
      app/components/home.tsx

+ 7 - 10
app/components/home.tsx

@@ -264,13 +264,10 @@ function Screen() {
 
     return (
       <>
-        {
-          location.pathname !== '/' &&
-          <SideBar className={styles["sidebar-show"]} />
-        }
+        <SideBar className={styles["sidebar-show"]} />
         <WindowContent>
           <Routes>
-            <Route path='/' element={<HomeApp />} />
+            <Route path='/' element={<DeepSeekChat />} />
             <Route path='/knowledgeChat' element={<Chat />} />
             <Route path='/newChat' element={<Chat />} />
             <Route path='/deepseekChat' element={<DeepSeekChat />} />
@@ -385,11 +382,11 @@ export function Home() {
     //  1) 临时禁用:NEXT_PUBLIC_DISABLE_UNIN_LOGIN=1 yarn dev
     //  2) 或在 .env.local 中加入 NEXT_PUBLIC_DISABLE_UNIN_LOGIN=1
     // ==============
-    // const DISABLE_UNIN_LOGIN = typeof process !== 'undefined' && process.env.NEXT_PUBLIC_DISABLE_UNIN_LOGIN === '1';
-    // if (DISABLE_UNIN_LOGIN) {
-    //   console.log('[Home] 统一登录验证已禁用,跳过 toUninLogin 验证');
-    //   return;
-    // }
+    const DISABLE_UNIN_LOGIN = typeof process !== 'undefined' && process.env.NEXT_PUBLIC_DISABLE_UNIN_LOGIN === '1';
+    if (DISABLE_UNIN_LOGIN) {
+      console.log('[Home] 统一登录验证已禁用,跳过 toUninLogin 验证');
+      return;
+    }
 
     // const loginRes = { "nickName": "建科咨询虚拟账号", "userId": "2222331845498970571", "token": "eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6IjAyMDE4Mzg0LTFmNjctNDhkYi05NjNiLTJkOGNhMDMxNTkzMiJ9.zTkTv8gDgJN7tfyxJko_zG1VsESlZACeYkpdMbITqnIpIfvHkZo8l8_Kcv6zo77GnuDyzdpOEt-GzPufD2Ye8A" };
     // if (loginRes) {