Newer
Older
XinYang_SanWei+RongYun / src / util / messageAlert.js
@张强云笔记本 张强云笔记本 on 17 Dec 2021 342 bytes 融云通话接入
import {
  Notification
} from 'element-ui';

 const messageAlert = ({
  code = 500,
  type = 'error',
  title = '异常提醒',
  message = '请通知管理员检查异常!',
} = {}) => {
  // 弹窗状态,只报错
  if (code !== 200) {
    Notification({
      title,
      message,
      type,
    })
  }
}
export default messageAlert