Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pageConfig.title能继承父级配置 #6888

Closed
xmsz-stu opened this issue May 17, 2024 · 5 comments
Closed

pageConfig.title能继承父级配置 #6888

xmsz-stu opened this issue May 17, 2024 · 5 comments
Labels

Comments

@xmsz-stu
Copy link

Summary | 概述

No response

Motivation | 背景

router : {
   path:"/a",
   pageConfig: {title:"a"},
   children: [{path: "/b'}]
}

用户访问a/b的时候,标题还是默认的,不是a

Usage example | 使用示例

No response

Detailed design | 方案设计

希望能够继承父级的配置
不能每个子页面设置都很麻烦

Additional context | 额外信息

No response

@xmsz-stu xmsz-stu added the rfc label May 17, 2024
@ClarkXia
Copy link
Collaborator

什么版本,目前 3.0 如果 layout 上有 title,具体页面不设置的话 以 layout 为准

@xmsz-stu
Copy link
Author

什么版本,目前 3.0 如果 layout 上有 title,具体页面不设置的话 以 layout 为准

2.x

@ClarkXia
Copy link
Collaborator

2.x 目前没有这个逻辑,可以通过中心化配置路由文件的方式降低这块的维护成本

@xmsz-stu
Copy link
Author

2.x 目前没有这个逻辑,可以通过中心化配置路由文件的方式降低这块的维护成本

那2.x还会更新吗
我现在就是在route.ts配置,但是会遇到很多需要重复配置

@ClarkXia
Copy link
Collaborator

2.x 没有重大 bug 的情况下 不会更新了,另外也推荐升级 3.x 看看效果

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants