hongjli
2025-04-16 d61db13c22ff3781cdb13c8f1f085cd8547c73ad
src/components/layout/ClientLayoutContent.tsx
@@ -12,14 +12,17 @@
  const [isClient, setIsClient] = useState(false);
  const [hasError, setHasError] = useState(false);
  const pathname = usePathname();
  const isLoginPage = pathname === '/login';
  const isRegisterPage = pathname === '/register';
  const isHomePage = pathname === '/';
  const isAIScenePage = pathname.startsWith('/ai-scene');
  useEffect(() => {
    setIsClient(true);
  }, []);
  // 判断当前页面
  const isLoginPage = pathname === '/login';
  const isRegisterPage = pathname === '/register';
  const isHomePage = pathname === '/';
  const isAIScenePage = pathname === '/ai-scene';
  const isAISceneChatPage = pathname.startsWith('/ai-scene/chat');
  // 添加错误捕获
  useEffect(() => {
@@ -65,7 +68,7 @@
            <main className={`flex-1 ${isHomePage || isAIScenePage ? '' : 'bg-gradient-to-b from-[var(--ai-surface)] to-white'} pt-0 mt-0`}>
              {children}
            </main>
            {!isLoginPage && !isRegisterPage && (
            {!isLoginPage && !isRegisterPage && !isAISceneChatPage && (
              <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">
@@ -181,7 +184,18 @@
                      <span className="inline-block w-2 h-2 bg-[#FF6A88] rounded-full ml-3 animate-pulse" style={{animationDelay: '0.6s'}}></span>
                    </div>
                    
                    <p className="text-sm text-gray-400">© 2024 帷幄君成. All rights reserved.</p>
                    <div className="text-sm text-gray-400 flex items-center justify-center gap-2">
                      <span>© 2025 帷幄君成. All rights reserved.</span>
                      <span className="text-gray-500">|</span>
                      <a
                        href="http://beian.miit.gov.cn/"
                        target="_blank"
                        rel="noopener noreferrer"
                        className="hover:text-[#6ADBFF] transition-colors"
                      >
                        沪ICP备2025121910号
                      </a>
                    </div>
                  </div>
                </div>
              </footer>