Format JSON string

This commit is contained in:
haiyangcui
2020-08-25 13:48:33 +02:00
parent 7113567475
commit 5b8d883af4

View File

@@ -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'] },