From 7815eecd609299cec4fc09a9e3d6121b59173104 Mon Sep 17 00:00:00 2001 From: afc163 Date: Mon, 13 Nov 2017 13:35:33 +0800 Subject: [PATCH] 404 page for /xxx/whatever --- src/layouts/BasicLayout.js | 6 ++++-- src/router.js | 3 +-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/layouts/BasicLayout.js b/src/layouts/BasicLayout.js index 6ccc0cc6..84ec4e62 100644 --- a/src/layouts/BasicLayout.js +++ b/src/layouts/BasicLayout.js @@ -8,12 +8,13 @@ import moment from 'moment'; import groupBy from 'lodash/groupBy'; import { ContainerQuery } from 'react-container-query'; import classNames from 'classnames'; -import styles from './BasicLayout.less'; import HeaderSearch from '../components/HeaderSearch'; import NoticeIcon from '../components/NoticeIcon'; import GlobalFooter from '../components/GlobalFooter'; import { getNavData } from '../common/nav'; import { getRouteData } from '../utils/utils'; +import NotFound from '../routes/Exception/404'; +import styles from './BasicLayout.less'; const { Header, Sider, Content } = Layout; const { SubMenu } = Menu; @@ -356,7 +357,8 @@ class BasicLayout extends React.PureComponent { ) ) } - + + - -- GitLab