diff --git a/src/pages/Settings.vue b/src/pages/Settings.vue index faad4914..79b67e52 100644 --- a/src/pages/Settings.vue +++ b/src/pages/Settings.vue @@ -371,7 +371,7 @@ export default { } exportData = JSON.stringify(exportData); let downloadItem = document.createElement("a"); - downloadItem.setAttribute("href", `data:application/json;charset=utf-8, ${exportData}`); + downloadItem.setAttribute("href", "data:application/json;charset=utf-8," + encodeURI(exportData)); downloadItem.setAttribute("download", fileName); downloadItem.click(); },