Skip to content

Commit e4efda6

Browse files
author
chenghao
committed
传递组件props
1 parent 84ec28b commit e4efda6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/routes/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export default class CRouter extends Component {
7878
<Route path={'dashboard/index'} component={Dashboard} />
7979
<Route path="auth">
8080
<Route path="basic" component={AuthBasic} />
81-
<Route path="routerEnter" component={() => this.requireAuth('auth/testPage', <RouterEnter />)} />
81+
<Route path="routerEnter" component={(props) => this.requireAuth('auth/testPage', <RouterEnter {...props} />)} />
8282
</Route>
8383
</Route>
8484
<Route path={'login'} components={Login} />

0 commit comments

Comments
 (0)