| | |
| | | import React, { Component } from 'react' |
| | | import { notification } from 'antd' |
| | | import { MessageFilled } from '@ant-design/icons' |
| | | import moment from 'moment' |
| | | |
| | | import Api from '@/api' |
| | | import MKEmitter from '@/utils/events.js' |
| | | import url from './msg.png' |
| | | |
| | | class SysIcon extends Component { |
| | | state = { |
| | |
| | | if (!notices) return null |
| | | |
| | | return ( |
| | | <MessageFilled className="mk-msg-icon" data-title={notices.length ? notices.length : ''} onClick={this.open} /> |
| | | <span className="mk-msg-icon" onClick={this.open}> |
| | | <img src={url} alt=""/> |
| | | <span>{notices.length ? notices.length : ''}</span> |
| | | </span> |
| | | ) |
| | | } |
| | | } |