diff --git a/src/layouts/UserLayout.js b/src/layouts/UserLayout.js index 3b2487bd724b88b0d0eeedd6c319161a74bdcf89..01228a51f6b1c1952ce761b7674c3ac417aeddbd 100644 --- a/src/layouts/UserLayout.js +++ b/src/layouts/UserLayout.js @@ -1,5 +1,5 @@ import React from 'react'; -import { Link, Route } from 'dva/router'; +import { Link, Redirect, Switch, Route } from 'dva/router'; import DocumentTitle from 'react-document-title'; import { Icon } from 'antd'; import GlobalFooter from '../components/GlobalFooter'; @@ -47,8 +47,8 @@ class UserLayout extends React.PureComponent {
Ant Design 是西湖区最具影响力的 Web 设计规范
- { - getRoutes(match.path, routerData).map(item => + + {getRoutes(match.path, routerData).map(item => ( ) - ) - } + )} + +