File tree 2 files changed +4
-1
lines changed
2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,9 @@ class BasicExample extends React.Component {
19
19
return < Router basename = "/wxService/" >
20
20
< div >
21
21
{ /* <Route exact path="/" component={BSList} />*/ }
22
+ < Route exact path = '/' render = { ( ) => (
23
+ < Redirect to = '/react/home' />
24
+ ) } />
22
25
< Route path = "/react" component = { ReactPage } />
23
26
< Route path = "/bindPhone" component = { BindPhonePage } />
24
27
< Route path = "/antdPage" component = { AntdPage } />
Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ class ReactPage extends React.Component{
86
86
{ /*这里如果是row 会增加右边的边距*/ }
87
87
< div className = "row" >
88
88
< Route className = "col-md-12" exact path = { `${ this . props . match . url } /index` } component = { Index } />
89
- < Route className = "col-md-12" path = { `${ this . props . match . url } /myHome ` } component = { Home } />
89
+ < Route className = "col-md-12" path = { `${ this . props . match . url } /home ` } component = { Home } />
90
90
< Route className = "col-md-12" path = { `${ this . props . match . url } /about` } component = { About } />
91
91
< Route className = "col-md-12" path = { `${ this . props . match . url } /topics` } component = { Topics } />
92
92
< Route className = "col-md-12" path = { `${ this . props . match . url } /antd` } component = { AntdIndex } />
You can’t perform that action at this time.
0 commit comments