import React, {Component} from 'react'; import {Layout, Menu} from 'antd'; import GenerateJs from "../component/generateJs/GenerateJs"; import Deploy from '../../common/deploy/Deploy'; import Schema from '../component/schema/Schema'; import Graphql from "../component/graphql/Graphql"; import CaseMetabase from "../component/caseMetabase/CaseMetabase"; import axios from 'axios'; axios.defaults.withCredentials = true; const {Content} = Layout; class UserCreate extends Component { constructor(props) { super(props); this.state = { menuLevel2: "schema", userID: "", getID_url: 'http://123.206.193.98:8999/getuserid', } } componentWillMount() { let _this = this; axios.get(this.state.getID_url) .then((res) => { if (res.data !== '') { _this.setState({ userID: res.data }) } }) .catch(function (err) { console.log(err); }); } switchMenu = (menuName, e) => { this.setState({ [menuName]: e.key, }); }; render() { let schemaID = this.props.history.location.state ? this.props.history.location.state.schemaID : "ecommerce_schemaID"; let schemaName = this.props.history.location.state ? this.props.history.location.state.schemaName : "ecommerce"; return (