靶段备注清空问题
continuous-integration/drone/push Build encountered an error Details

uat
wangxiaoshuang 2025-06-25 14:29:32 +08:00
parent 2c0823f027
commit 5717fb9dd1
2 changed files with 5 additions and 5 deletions

View File

@ -443,8 +443,8 @@ export default {
if (item.Type === 'number') {
this.limitBlur(item.Id, item.ValueType)
}
if (question.Childrens.length > 0) {
this.resetChild(question.Childrens)
if (item.Childrens && item.Childrens.length > 0) {
this.resetChild(item.Childrens)
}
},
resetChild(obj) {

View File

@ -436,10 +436,10 @@ export default {
},
formItemChange(val, question) {
this.formChanged = true
if (item.Type === 'number') {
this.limitBlur(item.Id, item.ValueType)
if (question.Type === 'number') {
this.limitBlur(question.Id, question.ValueType)
}
if (question.Childrens.length > 0) {
if (question.Childrens && question.Childrens.length > 0) {
this.resetChild(question.Childrens)
}
},