We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
const routes = [ { path: '/', component: App, breadcrumbName: '首页', getIndexRoute(nextState, cb) { require.ensure([], require => { cb(null, {component: require('./routes/indexPage')}) }, 'index') }, childRoutes: [ { path: '/user', breadcrumbName: '用户列表', getComponents(nextState, cb) { require.ensure([], require => { registerModel(app, require('./models/user')) cb(null, require('./routes/user/list/')) }, 'user') }, childRoutes:[ { path: ':id', breadcrumbName: '用户:id', getComponents(nextState, cb) { require.ensure([], require => { //registerModel(app, require('./models/user')) cb(null, require('./routes/user/detail/')) }, 'user') }, }, ] }, { path: '*', breadcrumbName: 'error', getComponent(nextState, cb) { require.ensure([], require => { cb(null, require('./routes/error/')) }, 'error') } } ] } ];
这时候 :id这个路由的component 渲染不出来,依然是 list
The text was updated successfully, but these errors were encountered:
同样的疑问,楼主解决没?
Sorry, something went wrong.
No branches or pull requests
这时候 :id这个路由的component 渲染不出来,依然是 list
The text was updated successfully, but these errors were encountered: