| | |
| | | import React, {Component} from 'react' |
| | | import { withRouter } from 'react-router-dom' |
| | | import { Spin, notification, Table, Typography, Row, Col, Tooltip } from 'antd' |
| | | import { QuestionCircleOutlined } from '@ant-design/icons' |
| | | |
| | |
| | | |
| | | UNSAFE_componentWillMount() { |
| | | document.body.className = '' |
| | | if (sessionStorage.getItem('UserID')) { |
| | | this.getAppList() |
| | | return |
| | | } |
| | | } |
| | | |
| | | componentDidMount() { |
| | | if (!sessionStorage.getItem('UserID')) { |
| | | this.props.history.replace('/login') |
| | | return |
| | | } |
| | | } |
| | | |
| | | /** |
| | |
| | | |
| | | render () { |
| | | const { loading, columns, applist, selectApp } = this.state |
| | | |
| | | if (!sessionStorage.getItem('UserID')) return null |
| | | |
| | | return ( |
| | | <div className="mk-app-check"> |
| | |
| | | } |
| | | } |
| | | |
| | | export default AppCheck |
| | | export default withRouter(AppCheck) |