|
|
@@ -177,55 +177,53 @@ class BasicLayout extends React.PureComponent {
|
|
|
onNoticeVisibleChange={this.handleNoticeVisibleChange}
|
|
|
/>
|
|
|
<Content style={{ margin: '24px 24px 0', height: '100%' }}>
|
|
|
- <div style={{ minHeight: 'calc(100vh - 260px)' }}>
|
|
|
- <Switch>
|
|
|
- {
|
|
|
- redirectData.map(item =>
|
|
|
- <Redirect key={item.from} exact from={item.from} to={item.to} />
|
|
|
- )
|
|
|
- }
|
|
|
- {
|
|
|
- getRoutes(match.path, routerData).map(item =>
|
|
|
- (
|
|
|
- <AuthorizedRoute
|
|
|
- key={item.key}
|
|
|
- path={item.path}
|
|
|
- component={item.component}
|
|
|
- exact={item.exact}
|
|
|
- authority={item.authority}
|
|
|
- redirectPath="/exception/403"
|
|
|
- />
|
|
|
- )
|
|
|
+ <Switch>
|
|
|
+ {
|
|
|
+ redirectData.map(item =>
|
|
|
+ <Redirect key={item.from} exact from={item.from} to={item.to} />
|
|
|
+ )
|
|
|
+ }
|
|
|
+ {
|
|
|
+ getRoutes(match.path, routerData).map(item =>
|
|
|
+ (
|
|
|
+ <AuthorizedRoute
|
|
|
+ key={item.key}
|
|
|
+ path={item.path}
|
|
|
+ component={item.component}
|
|
|
+ exact={item.exact}
|
|
|
+ authority={item.authority}
|
|
|
+ redirectPath="/exception/403"
|
|
|
+ />
|
|
|
)
|
|
|
- }
|
|
|
- <Redirect exact from="/" to={bashRedirect} />
|
|
|
- <Route render={NotFound} />
|
|
|
- </Switch>
|
|
|
- </div>
|
|
|
- <GlobalFooter
|
|
|
- links={[{
|
|
|
- key: 'Pro 首页',
|
|
|
- title: 'Pro 首页',
|
|
|
- href: 'http://pro.ant.design',
|
|
|
- blankTarget: true,
|
|
|
- }, {
|
|
|
- key: 'github',
|
|
|
- title: <Icon type="github" />,
|
|
|
- href: 'https://github.com/ant-design/ant-design-pro',
|
|
|
- blankTarget: true,
|
|
|
- }, {
|
|
|
- key: 'Ant Design',
|
|
|
- title: 'Ant Design',
|
|
|
- href: 'http://ant.design',
|
|
|
- blankTarget: true,
|
|
|
- }]}
|
|
|
- copyright={
|
|
|
- <div>
|
|
|
- Copyright <Icon type="copyright" /> 2018 蚂蚁金服体验技术部出品
|
|
|
- </div>
|
|
|
+ )
|
|
|
}
|
|
|
- />
|
|
|
+ <Redirect exact from="/" to={bashRedirect} />
|
|
|
+ <Route render={NotFound} />
|
|
|
+ </Switch>
|
|
|
</Content>
|
|
|
+ <GlobalFooter
|
|
|
+ links={[{
|
|
|
+ key: 'Pro 首页',
|
|
|
+ title: 'Pro 首页',
|
|
|
+ href: 'http://pro.ant.design',
|
|
|
+ blankTarget: true,
|
|
|
+ }, {
|
|
|
+ key: 'github',
|
|
|
+ title: <Icon type="github" />,
|
|
|
+ href: 'https://github.com/ant-design/ant-design-pro',
|
|
|
+ blankTarget: true,
|
|
|
+ }, {
|
|
|
+ key: 'Ant Design',
|
|
|
+ title: 'Ant Design',
|
|
|
+ href: 'http://ant.design',
|
|
|
+ blankTarget: true,
|
|
|
+ }]}
|
|
|
+ copyright={
|
|
|
+ <div>
|
|
|
+ Copyright <Icon type="copyright" /> 2018 蚂蚁金服体验技术部出品
|
|
|
+ </div>
|
|
|
+ }
|
|
|
+ />
|
|
|
</Layout>
|
|
|
</Layout>
|
|
|
);
|