feat:增加首页登录页面

This commit is contained in:
2026-06-20 17:35:14 +08:00
parent 7288f443f1
commit 2a7d4c74d4
6 changed files with 1744 additions and 4 deletions

View File

@@ -11,7 +11,7 @@ import { ChatPanel } from "./components/ChatPanel";
import { ConfigPanel } from "./components/ConfigPanel";
import { SessionSidebar } from "./components/SessionSidebar";
import { ToastContainer } from "./components/Toast";
import { AuthPage } from "./components/AuthPage";
import { LandingPage } from "./components/LandingPage";
import { AuthProvider, useAuth } from "./lib/auth";
import { loadConfig, loadTheme, saveTheme } from "./lib/storage";
import { I18nContext, parseLocale, t } from "./lib/i18n";
@@ -232,7 +232,7 @@ function AppContent() {
}
if (!isAuthenticated) {
return <AuthPage />;
return <LandingPage />;
}
return (