diff --git a/src/app/(marketing)/about/client.tsx b/src/app/(marketing)/about/client.tsx index be76760..4f65859 100644 --- a/src/app/(marketing)/about/client.tsx +++ b/src/app/(marketing)/about/client.tsx @@ -20,9 +20,10 @@ export function AboutClient() { const now = new Date(); const diff = now.getTime() - foundingDate.getTime(); - const days = Math.floor(diff / (1000 * 60 * 60 * 24)); - const years = Math.floor(days / 365); - const months = Math.floor((days % 365) / 30); + const totalDays = Math.floor(diff / (1000 * 60 * 60 * 24)); + const years = Math.floor(totalDays / 365); + const months = Math.floor((totalDays % 365) / 30); + const days = totalDays % 30; setOperationTime({ days, months, years }); }; diff --git a/src/app/(marketing)/products/page.tsx b/src/app/(marketing)/products/page.tsx index ef12b01..33a1459 100644 --- a/src/app/(marketing)/products/page.tsx +++ b/src/app/(marketing)/products/page.tsx @@ -12,7 +12,7 @@ import { Search, ArrowLeft, Check, TrendingUp, ChevronLeft, ChevronRight, Filter import { StaticLink } from '@/components/ui/static-link'; import { motion } from 'framer-motion'; -const categories = ['全部', '软件产品', '云服务', '数据分析', '信息安全']; +const categories = ['全部', '企业软件', '数据产品']; const ITEMS_PER_PAGE = 6; export default function ProductsPage() { diff --git a/src/components/layout/breadcrumb.tsx b/src/components/layout/breadcrumb.tsx index 8e4522f..497d939 100644 --- a/src/components/layout/breadcrumb.tsx +++ b/src/components/layout/breadcrumb.tsx @@ -1,5 +1,6 @@ 'use client'; +import { Fragment } from 'react'; import { StaticLink } from '@/components/ui/static-link'; import { ChevronRight, Home } from 'lucide-react'; @@ -14,20 +15,30 @@ interface BreadcrumbProps { export function Breadcrumb({ items }: BreadcrumbProps) { return ( -