fix: 修复导航栏 active 状态错误

- NAVIGATION 数组顺序调整为与页面 Section 顺序一致
- 顺序: home → services → products → about → news → contact
This commit is contained in:
张翔
2026-02-23 08:21:36 +08:00
parent 8d0f86c365
commit 4f9cfffdad
+2 -2
View File
@@ -11,12 +11,12 @@ export const COMPANY_INFO = {
address: '中国四川省成都市龙泉驿区幸福路12号',
} as const;
// Navigation Items - 单页面锚点导航
// Navigation Items - 单页面锚点导航(顺序必须与页面 Section 顺序一致)
export const NAVIGATION = [
{ id: 'home', label: '首页', href: '#home' },
{ id: 'about', label: '关于我们', href: '#about' },
{ id: 'services', label: '核心业务', href: '#services' },
{ id: 'products', label: '产品服务', href: '#products' },
{ id: 'about', label: '关于我们', href: '#about' },
{ id: 'news', label: '新闻动态', href: '#news' },
{ id: 'contact', label: '联系我们', href: '#contact' },
] as const;