king
2021-01-08 da7068bd48791cdee966c786ce0dfd46f6e03df9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import React, {Component} from 'react'
import PropTypes from 'prop-types'
import { Button } from 'antd'
 
import options from '@/store/options.js'
 
class PageMessage extends Component {
  static propTpyes = {
    BID: PropTypes.any,          // 父级Id,用于查询下拉选择项
    menuType: PropTypes.any,     // 菜单权限,是否为HS
  }
 
  state = {
    debug: sessionStorage.getItem('debug') === 'true'
  }
 
  render() {
    const { debug } = this.state
 
    return (debug && options.sysType !== 'cloud' ? <Button
      icon="copy"
      shape="circle"
      className="page-message"
      onClick={this.handleviewconfig}
    /> : null)
  }
}
 
export default PageMessage