chenrui
2025-06-04 b497a0b35c09e6b53324c14b7697c1e9e0ed36a9
src/plugins/modal.js
@@ -1,6 +1,6 @@
import { ElMessage, ElMessageBox, ElNotification, ElLoading } from 'element-plus'
let loadingInstance;
let loadingInstance
export default {
  // 消息提示
@@ -41,7 +41,7 @@
  },
  // 错误通知
  notifyError(content) {
    ElNotification.error(content);
    ElNotification.error(content)
  },
  // 成功通知
  notifySuccess(content) {
@@ -77,6 +77,6 @@
  },
  // 关闭遮罩层
  closeLoading() {
    loadingInstance.close();
    loadingInstance.close()
  }
}