mirror of
https://github.com/Ssl1S/json-schema-editor-vue.git
synced 2025-12-30 09:47:54 +08:00
fix: remove enum property when enum==''
This commit is contained in:
@@ -289,6 +289,11 @@ export default {
|
|||||||
changeEnumValue (e) {
|
changeEnumValue (e) {
|
||||||
const pickType = this.pickValue.type
|
const pickType = this.pickValue.type
|
||||||
const value = e.target.value
|
const value = e.target.value
|
||||||
|
|
||||||
|
if(!value || value===''){
|
||||||
|
this.advancedValue.enum = null
|
||||||
|
return
|
||||||
|
}
|
||||||
var arr = value.split('\n')
|
var arr = value.split('\n')
|
||||||
|
|
||||||
if (pickType === 'string') {
|
if (pickType === 'string') {
|
||||||
|
|||||||
Reference in New Issue
Block a user