提交 6fbecb6c authored 作者: 刘旭's avatar 刘旭

修改导出文件 名

上级 42c02519
...@@ -206,6 +206,7 @@ const handleDelete = (id: number) => { ...@@ -206,6 +206,7 @@ const handleDelete = (id: number) => {
// 导出 // 导出
const handleExport = (data: any) => { const handleExport = (data: any) => {
console.log(data);
ElMessageBox.confirm("确认导出文件?", "导出", { ElMessageBox.confirm("确认导出文件?", "导出", {
confirmButtonText: "确认", confirmButtonText: "确认",
cancelButtonText: "取消", cancelButtonText: "取消",
...@@ -220,7 +221,7 @@ const handleExport = (data: any) => { ...@@ -220,7 +221,7 @@ const handleExport = (data: any) => {
const href = window.URL.createObjectURL(blob) const href = window.URL.createObjectURL(blob)
downloadElement.href = href downloadElement.href = href
// 下载后文件名 // 下载后文件名
downloadElement.download = "lic.tmp"; downloadElement.download = 'lic' + data.macAddress + '.lqlic';
document.body.appendChild(downloadElement) document.body.appendChild(downloadElement)
// 点击下载 // 点击下载
downloadElement.click() downloadElement.click()
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论