From 5b8d883af42a5ce2e5ab784e5f79b2862305f9d7 Mon Sep 17 00:00:00 2001 From: haiyangcui Date: Tue, 25 Aug 2020 13:48:33 +0200 Subject: [PATCH] Format JSON string --- src/components/Setting.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Setting.vue b/src/components/Setting.vue index 95b98b7..e5fb773 100644 --- a/src/components/Setting.vue +++ b/src/components/Setting.vue @@ -226,7 +226,7 @@ export default { }, exportFavorites () { const arr = [...this.favoritesList] - const str = JSON.stringify(arr) + const str = JSON.stringify(arr, null, 4) const options = { filters: [ { name: 'JSON file', extensions: ['json'] }, @@ -269,7 +269,7 @@ export default { }, expSites () { const arr = [...this.sitesList] - const str = JSON.stringify(arr) + const str = JSON.stringify(arr, null, 4) const options = { filters: [ { name: 'JSON file', extensions: ['json'] },