3
0

4 Коммиты 717ee81e58 ... 311c0794bd

Автор SHA1 Сообщение Дата
  Ryuiso 311c0794bd 修复H5 下侧边栏自动弹出占据页面的问题 1 неделя назад
  Ryuiso beba42cba8 Merge branch 'single' of https://git.zyuas.com/LLM/chat-client-web into single 6 месяцев назад
  Ryuiso d9679b7bed Merge branch 'single' of https://git.zyuas.com/LLM/chat-client-web into single 6 месяцев назад
  Ryuiso 4e2028b8b8 no message 6 месяцев назад
2 измененных файлов с 17 добавлено и 17 удалено
  1. 1 0
      .gitignore
  2. 16 17
      app/components/home.tsx

+ 1 - 0
.gitignore

@@ -11,6 +11,7 @@
 # next.js
 /.next/
 /out/
+out.zip
 
 # production
 /build

+ 16 - 17
app/components/home.tsx

@@ -263,23 +263,22 @@ function Screen() {
 
 
     return (
-      <>
-        {
-          location.pathname !== '/' &&
-          <SideBar className={(location.pathname === '/knowledgeChat' || location.pathname === '/deepseekChat') ? styles["sidebar-show"] : ""} />
-        }
-        <WindowContent>
-          <Routes>
-            <Route path='/' element={<HomeApp />} />
-            <Route path='/knowledgeChat' element={<Chat />} />
-            <Route path='/newChat' element={<Chat />} />
-            <Route path='/deepseekChat' element={<DeepSeekChat />} />
-            <Route path='/newDeepseekChat' element={<DeepSeekChat />} />
-          </Routes>
-        </WindowContent>
-      </>
-    );
-  };
+        <>
+          {
+            location.pathname !== '/' &&
+            <SideBar className={(!isMobileScreen && (location.pathname === '/knowledgeChat' || location.pathname === '/deepseekChat')) ? styles["sidebar-show"] : ""} />
+          }
+          <WindowContent>
+            <Routes>
+              <Route path='/' element={<HomeApp />} />
+              <Route path='/knowledgeChat' element={<Chat />} />
+              <Route path='/newChat' element={<Chat />} />
+              <Route path='/deepseekChat' element={<DeepSeekChat />} />
+              <Route path='/newDeepseekChat' element={<DeepSeekChat />} />
+            </Routes>
+          </WindowContent>
+        </>
+      );  };
 
   return (
     <div