ant-design / ant-design/pro-components

🐛[BUG] Layout 切换路由怎么不让自动改变浏览器标题?

Open
#8,104 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
4.8k
Forks
1.4k
Avg merge
10h 44m
Merged PRs (30d)
3

Description

切换路由浏览器标题拼接了菜单标题,如何不拼?
![image](https://github.com/ant-design/pro-components/assets/100838736/04bb177e-82e8-41e3-8774-f9ce391886cc)

查看文档,title设置成false后,浏览器标题直接成菜单标题了。
![image](https://github.com/ant-design/pro-components/assets/100838736/5b3e2276-580b-4421-882d-28623388f6e9)

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue by switching routes with the route title set to false, then trace the layout's browser-title handling and its use of the menu title. Done means route changes no longer append or replace the browser title with the menu title when that setting is false.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.