NEZ-3243 feat:License management二级页面开发

This commit is contained in:
zhangyu
2023-10-20 17:03:29 +08:00
parent cbaf385be0
commit 5563e4ed79
2 changed files with 3 additions and 2 deletions

View File

@@ -170,12 +170,13 @@ export default {
if (window.navigator.msSaveOrOpenBlob) {
// 兼容ie11
const blobObject = new Blob([res.data])
window.navigator.msSaveOrOpenBlob(blobObject)
window.navigator.msSaveOrOpenBlob(blobObject, params.name)
} else {
const url = URL.createObjectURL(new Blob([res.data]))
const a = document.createElement('a')
document.body.appendChild(a) // 此处增加了将创建的添加到body当中
a.href = url
a.download = params.name
a.target = '_blank'
a.click()
a.remove() // 将a标签移除

View File

@@ -158,7 +158,7 @@ export default {
})
},
exportLicense (row) {
this.$emit('export', { haspid: row.haspid })
this.$emit('export', { haspid: row.haspid, name: row.name + '.c2v' })
}
},
created () {