From 5776750539794f8b7243dec50ccfa76af7fd77dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20Cederstr=C3=B6m?= Date: Tue, 9 Jan 2018 15:13:32 +0100 Subject: [PATCH] redirect from /user to /user/login (#632) --- src/layouts/UserLayout.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/layouts/UserLayout.js b/src/layouts/UserLayout.js index 3b2487bd..01228a51 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 => ( ) - ) - } + )} + + -- GitLab