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

antdp不支持动态路由 #268

Closed
ChenlingasMx opened this issue Jun 21, 2023 · 1 comment
Closed

antdp不支持动态路由 #268

ChenlingasMx opened this issue Jun 21, 2023 · 1 comment
Assignees

Comments

@ChenlingasMx
Copy link
Contributor

image

路由配置如下

      {
            "path":"/order/orderDetail/:id",
            "name": "订单详情",
            "component": "@/pages/order/orderDetail/$detail.jsx",
            "hideInMenu": true
       }

跳转代码如下

 history.push(`/order/orderDetail/${12}`);

结果:404页面不存在。用umi创建的项目不会出现这个问题

@ChenlingasMx ChenlingasMx mentioned this issue Jun 21, 2023
23 tasks
@xingyuefeng xingyuefeng self-assigned this Jun 27, 2023
@xingyuefeng
Copy link
Contributor

已支持

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

2 participants