king
2025-02-11 aa15f061ba185b05f22c98a0a979c72d08bcd974
src/components/header/sysmessage/icon.jsx
@@ -1,10 +1,10 @@
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 = {
@@ -118,7 +118,10 @@
    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>
    )
  }
}