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

umi block add --path 不会寻找父路由插入 #2447

Closed
chenshuai2144 opened this issue May 21, 2019 · 0 comments
Closed

umi block add --path 不会寻找父路由插入 #2447

chenshuai2144 opened this issue May 21, 2019 · 0 comments
Assignees

Comments

@chenshuai2144
Copy link
Contributor

chenshuai2144 commented May 21, 2019

[
  {
    path: "/dashboard",
    name: "dashboard",
    icon: "dashboard",
    routes: []
  }
]

现有路由,运行
umi block add https://github.com/ant-design/pro-blocks/tree/master/Analysis --npm-client=cnpm --path=/dashboard/analysis

期望行为

[
  {
    path: "/dashboard",
    name: "dashboard",
    icon: "dashboard",
    routes: [
      {
        name: "analysis",
        path: "/dashboard/analysis",
        component: "./dashboard/analysis"
      }
    ]
  }
];

实际行为

[
  {
    name: "analysis",
    path: "/dashboard/analysis",
    component: "./dashboard/analysis"
  },
  {
    path: "/dashboard",
    name: "dashboard",
    icon: "dashboard",
    routes: []
  }
];
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