feat: 重构导航和博客系统,支持多级菜单和API数据源
- 重构导航菜单支持多级子菜单结构 - 博客系统改为从API获取数据,移除本地文件存储 - 删除旧的关于页面,准备重构 - 修复博客详情页slug匹配问题 - 默认首页重定向到中文版本
This commit is contained in:
@@ -13,7 +13,33 @@
|
||||
},
|
||||
{
|
||||
"name": "走进福安德",
|
||||
"href": "/about"
|
||||
"href": "/about",
|
||||
"children": [
|
||||
{
|
||||
"name": "公司简介",
|
||||
"href": "/about?section=company"
|
||||
},
|
||||
{
|
||||
"name": "企业文化",
|
||||
"href": "/about?section=culture"
|
||||
},
|
||||
{
|
||||
"name": "生产基地",
|
||||
"href": "/about?section=base"
|
||||
},
|
||||
{
|
||||
"name": "组织架构",
|
||||
"href": "/about?section=organization"
|
||||
},
|
||||
{
|
||||
"name": "荣誉资质",
|
||||
"href": "/about?section=awards"
|
||||
},
|
||||
{
|
||||
"name": "发展历程",
|
||||
"href": "/about?section=history"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "产品中心",
|
||||
@@ -21,7 +47,21 @@
|
||||
},
|
||||
{
|
||||
"name": "新闻中心",
|
||||
"href": "/blog"
|
||||
"href": "/blog",
|
||||
"children": [
|
||||
{
|
||||
"name": "公告",
|
||||
"href": "/blog?category=announce"
|
||||
},
|
||||
{
|
||||
"name": "新闻",
|
||||
"href": "/blog?category=news"
|
||||
},
|
||||
{
|
||||
"name": "活动",
|
||||
"href": "/blog?category=event"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -35,32 +75,32 @@
|
||||
"title": "关于我们",
|
||||
"links": [
|
||||
{
|
||||
"href": "/about?section=company",
|
||||
"href": "/zh/about?section=company",
|
||||
"name": "公司简介",
|
||||
"useA": true
|
||||
},
|
||||
{
|
||||
"href": "/about?section=culture",
|
||||
"href": "/zh/about?section=culture",
|
||||
"name": "企业文化",
|
||||
"useA": true
|
||||
},
|
||||
{
|
||||
"href": "/about?section=base",
|
||||
"href": "/zh/about?section=base",
|
||||
"name": "生产基地",
|
||||
"useA": true
|
||||
},
|
||||
{
|
||||
"href": "/about?section=organization",
|
||||
"href": "/zh/about?section=organization",
|
||||
"name": "组织架构",
|
||||
"useA": true
|
||||
},
|
||||
{
|
||||
"href": "/about?section=awards",
|
||||
"href": "/zh/about?section=awards",
|
||||
"name": "荣誉资质",
|
||||
"useA": true
|
||||
},
|
||||
{
|
||||
"href": "/about?section=history",
|
||||
"href": "/zh/about?section=history",
|
||||
"name": "发展历程",
|
||||
"useA": true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user