ant-design / ant-design-pro

👨🏻‍💻👩🏻‍💻 Use Ant Design like a Pro!
https://pro.ant.design
MIT License
36.57k stars 8.15k forks source link

🧐[问题 | question]开启umi的keepalive多tab后,路由里redirect出错的问题 #11328

Open gaoobin opened 2 months ago

gaoobin commented 2 months ago

开启umi的keepalive多tab后,路由里redirect出错的问题

💻 路由配置

  {
    path: '/cms',
    name: '内容发布',
    routes: [
      {
        path: '/cms',
        redirect: '/cms/article',
      },
      {
        name: '文章',
        path: '/cms/article',
        component: './admin/cms/Article',
      },
  }

🚑 如图:本来是要跳转到文章的,结果额外打开了cms.menu标签页,而且tabs的UI在不断重复渲染

image

HJ1281581411 commented 4 days ago

都没人解决的吗?