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

浏览器的路由变了 但是页面没有变化 #11017

Closed
lvshuai1020 opened this issue Oct 23, 2023 · 2 comments
Closed

浏览器的路由变了 但是页面没有变化 #11017

lvshuai1020 opened this issue Oct 23, 2023 · 2 comments

Comments

@lvshuai1020
Copy link

lvshuai1020 commented Oct 23, 2023

以下是我的 路由配置

{
    name: '会员',
    icon: ' ',
    path: '/member',
    component: '@/pages/member/index',
    routes: [
      {
        name: 'member_detail',
        path: '/member/member_detail',
        hideInMenu: true,
        component: './memberDetail/index'
      },

    ]
  },

这是我跳转的地方
<a onClick={() => {
history.push({
pathname: '/member/member_detail'
})
}}>编辑
删除

"@ant-design/icons": "^4.7.0",
"@ant-design/pro-components": "1.1.1",
"@umijs/route-utils": "^2.0.0",
"antd": "^4.20.0",
"classnames": "^2.3.0",
"lodash": "^4.17.0",
"moment": "^2.29.0",
"omit.js": "^2.0.2",
"rc-menu": "^9.1.0",
"rc-util": "^5.16.0",
"react": "^17.0.0",
"react-dev-inspector": "^1.7.0",
"react-dom": "^17.0.0",
"react-helmet-async": "^1.2.0",
"umi": "^3.5.0"

@edifangyi
Copy link

一样的问题,求官方看看哈

@chenshuai2144
Copy link
Collaborator

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

No branches or pull requests

3 participants