async exportLog() {
try {
let result =await resources.browserconsole.Terminal.ExportLog({
macAddress: this.itemMacAddress
});
const fileUrl = get(result, 'data.fileUrl', null);
if (fileUrl != null) {
fileUrl.forEach(v => {
this.downloadFile(v);
});
}
} catch (err) {
this.$alert(err, '提示')
}
},
downloadFile(url){
const iframe = document.createElement("iframe");
iframe.style.display = "none";
iframe.style.height = 0;
iframe.src = url;
document.body.appendChild(iframe);
setTimeout(()=>{
iframe.remove();
}, 5 * 60 * 1000);
},