UNPKG

@aplus-frontend/ui

Version:

15 lines (14 loc) 365 B
import { Modal as e } from "@aplus-frontend/antdv"; import { formatFileNameAndDownloadFile as a } from "@aplus-frontend/utils"; async function c(o) { const t = await o?.(); Object.prototype.toString.call(t?.data) === "[object Blob]" && a(t).catch((r) => { e.error({ title: r, centered: !0 }); }); } export { c as handleExportDownload };