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