|
|
@@ -31,6 +31,20 @@ class BasicVersion extends Component {
|
|
|
languageButton: props.language === "中文" ? "English" : "中文",
|
|
|
userID: '',
|
|
|
avatar: ''
|
|
|
+ };
|
|
|
+ console.log(props);
|
|
|
+ if(props.location) {
|
|
|
+ switch(props.location.pathname) {
|
|
|
+ case '/common/deploy':
|
|
|
+ this.state.menuLevel1 = 'my-deploy';
|
|
|
+ break;
|
|
|
+ case '/common/communication':
|
|
|
+ this.state.menuLevel1 = 'communication';
|
|
|
+ break;
|
|
|
+ default:
|
|
|
+ this.state.menuLevel1 = 'example';
|
|
|
+ break;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|