ant-design / ant-design/pro-components
[BUG] 关于面包屑的跳转问题
- Dominant language
- TypeScript
- Stars
- 4.8k
- Forks
- 1.4k
- Avg merge
- 10h 44m
- Merged PRs (30d)
- 3
Description
### 🧐 问题描述
在config中配置了base:'/cms-xxx',页面中通过PageContainer组件,会自动生成面包屑,但是在点击面包屑的时候,会跳转到路由/list,而我期望跳转的路由是/cms-xxx/list。 除了手动配置breadcrumbRender,还有其他方案吗?
### 💻 示例代码
```
export default defineConfig({
base: '/cms-wedding',
routes,
mountElementId: 'cms-wedding',
...
```
```
//详情页
{...}
```
### 🚑 其他信息

Contributor guide
Research direction
Start by reproducing the issue with PageContainer and a config using base: '/cms-wedding', routes, and mountElementId. Trace how the automatically generated breadcrumb handles the detail-page route and compare it with the manually mentioned breadcrumbRender option. Done means clicking the breadcrumb preserves the configured base path and navigates to /cms-wedding/list.
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
- 35/100