|
|
@@ -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
|