/* * @Author: 李佐宁 * @Description: * @Date: 2022-10-31 10:54:23 * @LastEditTime: 2023-03-21 15:16:02 * @LastEditors: 李佐宁 */ import { ElNotification } from "element-plus"; export const yaNotification = ( title, type, hasClose, dangerouslyUseHTMLString = false, message ) => { return ElNotification({ title, type, duration: hasClose ? 4500 : 0, offset: 20, appendTo: document.body, dangerouslyUseHTMLString: dangerouslyUseHTMLString, message, customClass: "ya-notify", }); }; export const changePasswordNotification = (fn) => { const _html = `