Przeglądaj źródła

fix a bug of tabbar show

kulley 7 lat temu
rodzic
commit
d61cd7eff0

+ 14 - 0
src/app/basicVersion/BasicVersion.jsx

@@ -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;
+            }
         }
     }
 

+ 1 - 1
src/app/basicVersion/caseShow/UserCustom.js

@@ -268,7 +268,7 @@ class UserCustom extends Component {
                         value={this.state.dbKind}
                     >
                         <Radio value='fc-db'>fc-db</Radio>
-                        <Radio value='mongodb'>mongodb</Radio>
+                        {/*<Radio value='mongodb'>mongodb</Radio>*/}
                     </RadioGroup>
                 </div>
                 {

+ 1 - 2
src/app/basicVersion/myDeploy/TencentDeploy.js

@@ -122,8 +122,7 @@ class TencentDeploy extends Component {
                                                         }}/>
                                                     </Col>
                                                     <Col span={4}>
-                                                        <Button type={'danger'} size={'small'}
-                                                                style={{marginTop: 10}}><FormattedMessage id='delete'/></Button>
+                                                        <Button type={'danger'} size={'small'} style={{marginTop: 10}}><FormattedMessage id='delete'/></Button>
                                                     </Col>
                                                 </Row>
                                             ))