king
2024-10-15 f71f33d0bb41e0797e03934863123a030d670061
Merge branch 'develop'
1个文件已修改
17 ■■■■ 已修改文件
src/views/appcheck/index.jsx 17 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/appcheck/index.jsx
@@ -1,4 +1,5 @@
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'
@@ -42,7 +43,17 @@
  UNSAFE_componentWillMount() {
    document.body.className = ''
    this.getAppList()
    if (sessionStorage.getItem('UserID')) {
      this.getAppList()
      return
    }
  }
  componentDidMount() {
    if (!sessionStorage.getItem('UserID')) {
      this.props.history.replace('/login')
      return
    }
  }
  /**
@@ -138,6 +149,8 @@
  render () {
    const { loading, columns, applist, selectApp } = this.state
    if (!sessionStorage.getItem('UserID')) return null
    return (
      <div className="mk-app-check">
@@ -258,4 +271,4 @@
  }
}
export default AppCheck
export default withRouter(AppCheck)