使用A标签下载文件流形式的二维码
const title = `${item.inspLocationName}.png`; //item.inspLocationName 是文件名
const a = document.createElement('a');
document.body.appendChild(a)
a.style.display = 'none';
a.download = title;
a.href = window.URL.createObjectURL(blob); //blob是后端返回的文件流
a.click();
document.body.removeChild(a);