diff --git a/back/src/views/modules/ability/bsabilityai.vue b/back/src/views/modules/ability/bsabilityai.vue index 3ad53de6..40b20ea3 100644 --- a/back/src/views/modules/ability/bsabilityai.vue +++ b/back/src/views/modules/ability/bsabilityai.vue @@ -607,7 +607,9 @@ export default { this.submitFrom.infoList = this.submitFrom.infoList.filter( (item) => item.attrType !== obj.attrType ) - this.submitFrom.infoList.push(obj) + if (obj.attrValue) { + this.submitFrom.infoList.push(obj) + } }, changeAdd () { const arr = [] diff --git a/back/src/views/modules/ability/bsabilityservice.vue b/back/src/views/modules/ability/bsabilityservice.vue index 382d93b1..ac5976c7 100644 --- a/back/src/views/modules/ability/bsabilityservice.vue +++ b/back/src/views/modules/ability/bsabilityservice.vue @@ -581,7 +581,9 @@ export default { }, changeInfoList (obj) { this.submitFrom.infoList = this.submitFrom.infoList.filter((item) => item.attrType !== obj.attrType) - this.submitFrom.infoList.push(obj) + if (obj.attrValue) { + this.submitFrom.infoList.push(obj) + } }, submitData () { const arr = []