|
|
@@ -46,10 +46,8 @@ class App extends Component {
|
|
|
}
|
|
|
|
|
|
componentWillMount() {
|
|
|
- console.log('window.location', window.location);
|
|
|
let urlList = window.location.pathname.split("/");
|
|
|
let urlListLength = urlList.length;
|
|
|
- console.log('urlList', urlList, urlListLength);
|
|
|
if (urlListLength > 2) {
|
|
|
this.setState({menuLevel1: urlList[1]});
|
|
|
if (urlList[3] !== 'index') {
|