refactor(about): 重构关于页面路由为静态路径
将关于页面的查询参数路由改为静态路径结构,如/about/company 更新i18n消息中的链接路径 添加新的[section]页面处理逻辑 优化静态生成参数和错误处理
This commit is contained in:
@@ -17,27 +17,27 @@
|
||||
"children": [
|
||||
{
|
||||
"name": "Company Profile",
|
||||
"href": "/about?section=company"
|
||||
"href": "/about/company"
|
||||
},
|
||||
{
|
||||
"name": "Corporate Culture",
|
||||
"href": "/about?section=culture"
|
||||
"href": "/about/culture"
|
||||
},
|
||||
{
|
||||
"name": "Production Base",
|
||||
"href": "/about?section=base"
|
||||
"href": "/about/base"
|
||||
},
|
||||
{
|
||||
"name": "Organizational Structure",
|
||||
"href": "/about?section=organization"
|
||||
"href": "/about/organization"
|
||||
},
|
||||
{
|
||||
"name": "Honors and Qualifications",
|
||||
"href": "/about?section=awards"
|
||||
"href": "/about/awards"
|
||||
},
|
||||
{
|
||||
"name": "Development History",
|
||||
"href": "/about?section=history"
|
||||
"href": "/about/history"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -75,32 +75,32 @@
|
||||
"title": "About Us",
|
||||
"links": [
|
||||
{
|
||||
"href": "/en/about?section=company",
|
||||
"href": "/en/about/company",
|
||||
"name": "Company Profile",
|
||||
"useA": true
|
||||
},
|
||||
{
|
||||
"href": "/en/about?section=culture",
|
||||
"href": "/en/about/culture",
|
||||
"name": "Corporate Culture",
|
||||
"useA": true
|
||||
},
|
||||
{
|
||||
"href": "/en/about?section=base",
|
||||
"href": "/en/about/base",
|
||||
"name": "Production Base",
|
||||
"useA": true
|
||||
},
|
||||
{
|
||||
"href": "/en/about?section=organization",
|
||||
"href": "/en/about/organization",
|
||||
"name": "Organizational Structure",
|
||||
"useA": true
|
||||
},
|
||||
{
|
||||
"href": "/en/about?section=awards",
|
||||
"href": "/en/about/awards",
|
||||
"name": "Honors and Qualifications",
|
||||
"useA": true
|
||||
},
|
||||
{
|
||||
"href": "/en/about?section=history",
|
||||
"href": "/en/about/history",
|
||||
"name": "Development History",
|
||||
"useA": true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user