mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-10-15 04:09:14 +00:00
Fix: releases an existing object URL (#433)
This commit is contained in:
@@ -37,8 +37,10 @@ export const saveFile = (data: any, name: string) => {
|
||||
tagA.download = name;
|
||||
tagA.style.display = "none";
|
||||
const blob = new Blob([newData]);
|
||||
tagA.href = URL.createObjectURL(blob);
|
||||
const url = URL.createObjectURL(blob);
|
||||
tagA.href = url;
|
||||
document.body.appendChild(tagA);
|
||||
tagA.click();
|
||||
document.body.removeChild(tagA);
|
||||
URL.revokeObjectURL(url);
|
||||
};
|
||||
|
Reference in New Issue
Block a user