7484512252
重构导航系统,将原有的哈希路由(#section)改为标准路径路由(/path) 修改相关组件和测试用例以适应新的路由方式 移除不必要的滚动和哈希监听逻辑
17 lines
601 B
TypeScript
17 lines
601 B
TypeScript
export interface NavigationItem {
|
|
id: string;
|
|
label: string;
|
|
href: string;
|
|
}
|
|
|
|
export const NAVIGATION: NavigationItem[] = [
|
|
{ id: 'home', label: '首页', href: '/' },
|
|
{ id: 'services', label: '核心业务', href: '/services' },
|
|
{ id: 'solutions', label: '解决方案', href: '/solutions' },
|
|
{ id: 'products', label: '产品服务', href: '/products' },
|
|
{ id: 'cases', label: '成功案例', href: '/cases' },
|
|
{ id: 'about', label: '关于我们', href: '/about' },
|
|
{ id: 'news', label: '新闻动态', href: '/news' },
|
|
{ id: 'contact', label: '联系', href: '/contact' },
|
|
];
|