初始化提交

This commit is contained in:
2025-09-14 02:05:42 +08:00
parent 1a3730454e
commit 9f94e92eaf
19 changed files with 385 additions and 322 deletions

View File

@@ -11,7 +11,7 @@ import { useAppStore } from './store/useAppStore';
const queryClient = new QueryClient({
defaultOptions: {
queries: {
staleTime: 5 * 60 * 1000, // 5 minutes
staleTime: 5 * 60 * 1000, // 5分钟
retry: 2,
},
},
@@ -22,7 +22,7 @@ function AppContent() {
const { showPromptPanel, setShowPromptPanel, showHistory, setShowHistory } = useAppStore();
// Set mobile defaults on mount
// 在挂载时设置移动设备默认值
React.useEffect(() => {
const checkMobile = () => {
const isMobile = window.innerWidth < 768;
@@ -38,7 +38,7 @@ function AppContent() {
}, [setShowPromptPanel, setShowHistory]);
return (
<div className="h-screen bg-gray-900 text-gray-100 flex flex-col font-sans">
<div className="h-screen bg-white text-gray-900 flex flex-col font-sans">
<Header />
<div className="flex-1 flex overflow-hidden">