| | |
| | | import React, {Component} from 'react' |
| | | import { withRouter } from 'react-router-dom' |
| | | import { ConfigProvider } from 'antd' |
| | | import enUS from 'antd/es/locale/en_US' |
| | | import zhCN from 'antd/es/locale/zh_CN' |
| | |
| | | |
| | | class Design extends Component { |
| | | componentDidMount() { |
| | | window.debugger = false |
| | | window.GLOB.breakpoint = false |
| | | window.GLOB.designView = true |
| | | sessionStorage.removeItem('breakpoint') |
| | | setGLOBFuncs() |
| | | if (sessionStorage.getItem('isEditState') === 'true') { |
| | | sessionStorage.removeItem('isEditState') |
| | | this.props.history.replace('/main') |
| | | window.location.reload() |
| | | } else { |
| | | sessionStorage.setItem('isEditState', 'true') |
| | | window.debugger = false |
| | | window.GLOB.breakpoint = false |
| | | window.GLOB.designView = true |
| | | sessionStorage.removeItem('breakpoint') |
| | | setGLOBFuncs() |
| | | } |
| | | } |
| | | |
| | | render () { |
| | |
| | | } |
| | | } |
| | | |
| | | export default Design |
| | | export default withRouter(Design) |