| | |
| | | const isAIScenePage = pathname === '/ai-scene'; |
| | | const isAISceneChatPage = pathname.startsWith('/ai-scene/chat'); |
| | | const isChatPage = pathname === '/chat'; // 添加聊天页面判断 |
| | | const isSupplyChainChatPage = pathname === '/supply-chain-chat'; // 添加供应链聊天页面判断 |
| | | |
| | | // 设置客户端状态 |
| | | useEffect(() => { |
| | |
| | | <main className={`flex-1 ${isHomePage || isAIScenePage ? '' : 'bg-gradient-to-b from-[var(--ai-surface)] to-white'} pt-0 mt-0`}> |
| | | {children} |
| | | </main> |
| | | {!isLoginPage && !isRegisterPage && !isAISceneChatPage && !isChatPage && ( |
| | | {!isLoginPage && !isRegisterPage && !isAISceneChatPage && !isChatPage && !isSupplyChainChatPage && ( |
| | | <footer className="relative z-20 bg-gradient-to-br from-[#0A1033] via-[#1E2B63] to-[#131C41] text-white py-10 overflow-hidden"> |
| | | {/* 科技感动态背景元素 */} |
| | | <div className="absolute inset-0 overflow-hidden pointer-events-none"> |