File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import React , { Component } from 'react' ;
2- import { Switch , withRouter } from 'react-router-dom' ;
2+ import { Switch , withRouter , Route } from 'react-router-dom' ;
33import PrivateRoute from '../../router/PrivateRoute' ;
44import DataChart from '../../views/DataChart' ;
55import Basic from '../../views/Basic' ;
@@ -10,6 +10,7 @@ import Spin from '../../views/Spin';
1010import Progress from '../../views/Progress' ;
1111import Checkbox from '../../views/Checkbox' ;
1212import Cascader from '../../views/Cascader' ;
13+ import NoMatch from '../../views/NoMatch' ;
1314import './index.css' ;
1415class ContentMain extends Component {
1516 render ( ) {
@@ -25,6 +26,7 @@ class ContentMain extends Component{
2526 < PrivateRoute path = "/progress" exact component = { Progress } />
2627 < PrivateRoute path = "/checkbox" exact component = { Checkbox } />
2728 < PrivateRoute path = "/cascader" exact component = { Cascader } />
29+ < Route component = { NoMatch } />
2830 </ Switch >
2931 </ div >
3032 )
Original file line number Diff line number Diff line change 55 align-items : center;
66 width : 100% ;
77 height : 100% ;
8+ min-height : 45rem ;
89}
910.notFound .notFoundIcon {
1011 width : 35% ;
You can’t perform that action at this time.
0 commit comments