diff --git a/src/components/helpers/Parameters.vue b/src/components/helpers/Parameters.vue index 4a3fbcf7f..29e5ddf8e 100644 --- a/src/components/helpers/Parameters.vue +++ b/src/components/helpers/Parameters.vue @@ -231,7 +231,7 @@ return this.genTypescriptDef(props) }, genDefault (value) { - if (typeof value !== 'string') return JSON.stringify(value) + if (typeof value !== 'string') return JSON.stringify(value, null, 2) else return value }, genTypescriptDef (obj) {