import { notification } from "ant-design-vue"; import i18n from "@/locale"; notification.config({ maxCount: 1, }); export function notifyError(msg: string) { notification["error"]({ message: i18n.global.t("common.notify.error"), description: msg, }); } export function notifySuccess(msg: string) { notification["success"]({ message: i18n.global.t("common.notify.success"), description: msg, }); } export function notifyWarning(msg: string) { notification["warning"]({ message: i18n.global.t("common.notify.warning"), description: msg, }); }