利用 a 标签
download 属性为保存文件名
export function download(url: string, name = new Date().toLocaleString()) {
const anchor = document.createElement("a")
anchor.download = name
anchor.href = url
anchor.click()
anchor.remove()
}
Canvas.toDataURL()
URL.createObjectURL(Blob|File)