From 16f188860a2222b0aa158a3a9c7988821f3ea1f2 Mon Sep 17 00:00:00 2001 From: long2ice Date: Thu, 30 Apr 2020 22:17:55 +0800 Subject: [PATCH] fix JsonEditor.vue --- front/src/components/FormField.vue | 7 ++-- front/src/components/JsonEditor.vue | 50 +++++++++++++++-------------- 2 files changed, 30 insertions(+), 27 deletions(-) diff --git a/front/src/components/FormField.vue b/front/src/components/FormField.vue index 4d186ee..cd90e8f 100644 --- a/front/src/components/FormField.vue +++ b/front/src/components/FormField.vue @@ -132,10 +132,11 @@
@@ -437,7 +438,7 @@ this.field.is_array || this.field.type == "array" || this.field.is_table; - const isObject = this.field.type == "object"; + const isObject = this.field.type == "object" || this.field.type == "json"; let ret = this.value; if (!this.value) { if (isArray) { diff --git a/front/src/components/JsonEditor.vue b/front/src/components/JsonEditor.vue index b7d6d95..1604349 100644 --- a/front/src/components/JsonEditor.vue +++ b/front/src/components/JsonEditor.vue @@ -2,29 +2,31 @@