公告板
版本库
filestore
活动
搜索
登录
admin
/
ERP_override
派生自
ERP_override
概况
提交次数
目录
文档
派生
对比
blame
|
历史
|
原始文档
Merge branch 'master' of http://10.153.19.25:10101/r/ERP_override
chenlu
2024-03-22
bd8f3a15f17facd2f77521da844eaf76dca22bad
[~admin/ERP_override.git]
/
north-glass-erp
/
northglass-erp
/
src
/
hook
/
downLoadFile.js
1
2
3
4
5
6
7
export default function downloadFile(url,fileName){
// 文件的URL地址
const link = document.createElement('a');
link.href = url;
link.setAttribute('download', fileName);
link.click();
}