diff --git a/packages/json-schema-editor/main.vue b/packages/json-schema-editor/main.vue index d46825d..17644b3 100644 --- a/packages/json-schema-editor/main.vue +++ b/packages/json-schema-editor/main.vue @@ -289,6 +289,11 @@ export default { changeEnumValue (e) { const pickType = this.pickValue.type const value = e.target.value + + if(!value || value===''){ + this.advancedValue.enum = null + return + } var arr = value.split('\n') if (pickType === 'string') {