NEZ-2678 fix: Asset attributes删除重复Options后提示信息依然存在

This commit is contained in:
zhangyu
2023-03-13 14:11:34 +08:00
parent 969eb08acd
commit ef21d10f9c

View File

@@ -463,6 +463,12 @@ export default {
return
}
this.editAssetMeta.param.items.splice(index, 1)
// 'param.items.'+ index + '.name'
const arr = []
this.editAssetMeta.param.items.forEach((item, index) => {
arr.push('param.items.' + index + '.name')
})
this.$refs.editAssetMetaForm.clearValidate(arr)
this.$forceUpdate()
},
copyParam (index) {