feat: add file download demo

This commit is contained in:
vben
2020-11-13 00:55:25 +08:00
parent 1d45617e4a
commit db3092db2e
6 changed files with 54 additions and 0 deletions

View File

@@ -25,6 +25,7 @@ export function downloadByData(data: BlobPart, filename: string, mime?: string,
window.URL.revokeObjectURL(blobURL);
}
}
/**
* 根据文件地址下载文件
* @param {*} sUrl