refactor(about): 重构关于页面路由为静态路径
将关于页面的查询参数路由改为静态路径结构,如/about/company 更新i18n消息中的链接路径 添加新的[section]页面处理逻辑 优化静态生成参数和错误处理
This commit is contained in:
@@ -17,27 +17,27 @@
|
||||
"children": [
|
||||
{
|
||||
"name": "公司简介",
|
||||
"href": "/about?section=company"
|
||||
"href": "/about/company"
|
||||
},
|
||||
{
|
||||
"name": "企业文化",
|
||||
"href": "/about?section=culture"
|
||||
"href": "/about/culture"
|
||||
},
|
||||
{
|
||||
"name": "生产基地",
|
||||
"href": "/about?section=base"
|
||||
"href": "/about/base"
|
||||
},
|
||||
{
|
||||
"name": "组织架构",
|
||||
"href": "/about?section=organization"
|
||||
"href": "/about/organization"
|
||||
},
|
||||
{
|
||||
"name": "荣誉资质",
|
||||
"href": "/about?section=awards"
|
||||
"href": "/about/awards"
|
||||
},
|
||||
{
|
||||
"name": "发展历程",
|
||||
"href": "/about?section=history"
|
||||
"href": "/about/history"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -75,32 +75,32 @@
|
||||
"title": "关于我们",
|
||||
"links": [
|
||||
{
|
||||
"href": "/zh/about?section=company",
|
||||
"href": "/zh/about/company",
|
||||
"name": "公司简介",
|
||||
"useA": true
|
||||
},
|
||||
{
|
||||
"href": "/zh/about?section=culture",
|
||||
"href": "/zh/about/culture",
|
||||
"name": "企业文化",
|
||||
"useA": true
|
||||
},
|
||||
{
|
||||
"href": "/zh/about?section=base",
|
||||
"href": "/zh/about/base",
|
||||
"name": "生产基地",
|
||||
"useA": true
|
||||
},
|
||||
{
|
||||
"href": "/zh/about?section=organization",
|
||||
"href": "/zh/about/organization",
|
||||
"name": "组织架构",
|
||||
"useA": true
|
||||
},
|
||||
{
|
||||
"href": "/zh/about?section=awards",
|
||||
"href": "/zh/about/awards",
|
||||
"name": "荣誉资质",
|
||||
"useA": true
|
||||
},
|
||||
{
|
||||
"href": "/zh/about?section=history",
|
||||
"href": "/zh/about/history",
|
||||
"name": "发展历程",
|
||||
"useA": true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user