mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-28 14:08:49 +03:00
fix #397, incorrect encode function for export file
This commit is contained in:
parent
50175b733c
commit
76f1f34a0a
1 changed files with 1 additions and 1 deletions
|
@ -395,7 +395,7 @@ export default {
|
|||
}
|
||||
exportData = JSON.stringify(exportData, null, 4);
|
||||
let downloadItem = document.createElement("a");
|
||||
downloadItem.setAttribute("href", "data:application/json;charset=utf-8," + encodeURI(exportData));
|
||||
downloadItem.setAttribute("href", "data:application/json;charset=utf-8," + encodeURIComponent(exportData));
|
||||
downloadItem.setAttribute("download", fileName);
|
||||
downloadItem.click();
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue