Browse Source

首页变展示

xy 7 years ago
parent
commit
f1d7b73053
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/app/graphqlService/TrialCase.jsx

+ 3 - 3
src/app/graphqlService/TrialCase.jsx

@@ -21,7 +21,7 @@ class TrialCase extends Component {
     constructor(props) {
         super(props);
         this.state = {
-            menuLevel2: "schema",
+            menuLevel2: "preview",
             // default user
             userID: "ioobot",
             showPadding: true,
@@ -64,17 +64,17 @@ class TrialCase extends Component {
             <div>
                 <Menu
                     mode="horizontal"
-                    defaultSelectedKeys={['schema']}
+                    defaultSelectedKeys={['preview']}
                     style={{padding: '0 24px', position: 'fixed', width: '100%', zIndex: '5',lineHeight:'50px',fontWeight:600}}
                     onClick={(e) => this.switchMenu('menuLevel2', e)}
                     selectedKeys={[this.state.menuLevel2]}
                 >
+                    <Menu.Item key="preview"><FormattedMessage id="preview"/></Menu.Item>
                     <Menu.Item key="schema"><FormattedMessage id="schema"/></Menu.Item>
                     <Menu.Item key="deploy"><FormattedMessage id="deploy"/></Menu.Item>
                     <Menu.Item key="manage"><FormattedMessage id="manage"/></Menu.Item>
                     <Menu.Item key="graphiql"><FormattedMessage id="graphql IDE"/></Menu.Item>
                     <Menu.Item key="template"><FormattedMessage id="template"/></Menu.Item>
-                    <Menu.Item key="preview"><FormattedMessage id="preview"/></Menu.Item>
                     <Menu.Item key="metabase"><FormattedMessage id="metabase"/></Menu.Item>
                 </Menu>