提交修改
This commit is contained in:
parent
5323d0b0bf
commit
fe141cb6ce
|
@ -158,9 +158,9 @@ import { metaDataTypeTree } from '@/api/metaData'
|
|||
filename = decodeURIComponent(filename); // 解码
|
||||
}
|
||||
if (typeof window.navigator.msSaveBlob !== 'undefined') {
|
||||
window.navigator.msSaveBlob(new Blob([data]), filename)
|
||||
window.navigator.msSaveBlob(new Blob([data.data]), filename)
|
||||
} else {
|
||||
let url = window.URL.createObjectURL(new Blob([data]))
|
||||
let url = window.URL.createObjectURL(new Blob([data.data]))
|
||||
let link = document.createElement('a')
|
||||
link.style.display = 'none'
|
||||
link.href = url
|
||||
|
|
Loading…
Reference in New Issue
Block a user