获取文件名下载并兼容IE(文件流)
// 下载证件照片
async download(id) {
const vm = this;
const res = await commonApi.downloadAttachment({
ids: [id]
});
if (res.status === 200) {
if (res.data) {
let fileName = "";
let disposition = res.headers["content-disposition"];
if (disposition) {
let respcds = disposition.split(";");
for (let i = 0; i