
this is code from your documents:
export const getNavData = app => [
{
component: dynamicWrapper(app, ['user'], () => import('../layouts/BasicLayout')),
layout: 'BasicLayout',
name: '详情页',
path: '/',
icon: 'profile',
children: [{
name: '基础详情页',
path: '/',
component: dynamicWrapper(app, ['rule'], () => import('../routes/List/TableList')),
}, {
name: '高级详情页',
path: 'advanced',
children: [{
name: '高级详情页',
path: 'new', // id 为参数名
component: dynamicWrapper(app, [], () => import('../routes/new/new')),
}]
}],
}
It is fixed in master now.
Well,the reply is fast,that's quite impressive! I have tested master branch which works perfect fine.You documents must be out of date then.
We are working on it: https://github.com/ant-design/ant-design-pro/issues/333