mirror of
https://github.com/Ssl1S/json-schema-editor-vue.git
synced 2025-12-30 01:37:55 +08:00
fix: remove enum property when enum==''
This commit is contained in:
@@ -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') {
|
||||
|
||||
Reference in New Issue
Block a user