diff --git a/src/pages/EditMonitor.vue b/src/pages/EditMonitor.vue index f8861441..dd3d62bb 100644 --- a/src/pages/EditMonitor.vue +++ b/src/pages/EditMonitor.vue @@ -466,6 +466,15 @@ export default { return; } + // Beautiful the JSON format + if (this.monitor.body) { + this.monitor.body = JSON.stringify(JSON.parse(this.monitor.body), null, 4); + } + + if (this.monitor.headers) { + this.monitor.headers = JSON.stringify(JSON.parse(this.monitor.headers), null, 4); + } + if (this.isAdd) { this.$root.add(this.monitor, async (res) => {