mirror of
https://github.com/vform666/variant-form3-vite.git
synced 2025-01-10 16:19:13 +08:00
dates 时 清空默认值 切换显示类型报错修复
This commit is contained in:
parent
cf706a9e5b
commit
0176ea21af
@ -72,7 +72,7 @@
|
||||
this.fieldModel = [this.fieldModel]
|
||||
}
|
||||
if (val !== 'dates' && oldVal === 'dates'){
|
||||
this.fieldModel = this.fieldModel[0]
|
||||
this.fieldModel = this.fieldModel ? this.fieldModel[0] : null
|
||||
}
|
||||
},
|
||||
}
|
||||
|
@ -26,7 +26,7 @@
|
||||
this.optionModel.defaultValue = [this.optionModel.defaultValue]
|
||||
}
|
||||
if (val !== 'dates' && oldVal === 'dates'){
|
||||
this.optionModel.defaultValue = this.optionModel.defaultValue[0]
|
||||
this.optionModel.defaultValue = this.optionModel.defaultValue ? this.optionModel.defaultValue[0] : null
|
||||
}
|
||||
},
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user