From de1868eb5ce9858d05c0fa0b352bc17ad4a387a7 Mon Sep 17 00:00:00 2001 From: gaoyuanwei <2826352639@qq.com> Date: Thu, 14 Jul 2022 11:43:42 +0800 Subject: [PATCH] 573bug --- back/src/views/modules/ability/bsabilityai.vue | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/back/src/views/modules/ability/bsabilityai.vue b/back/src/views/modules/ability/bsabilityai.vue index 8a6a7b59..3ba32a4c 100644 --- a/back/src/views/modules/ability/bsabilityai.vue +++ b/back/src/views/modules/ability/bsabilityai.vue @@ -545,6 +545,13 @@ export default { }, // 新修改 UpdateData (item) { + console.log(item.infoList, '====================================wpwpwp') + // 去重 + const newArr = item.infoList.filter((element, index, self) => { + return self.findIndex(x => x.attrType === element.attrType) === index + }) + item.infoList = newArr + console.log(item.infoList, '====================================wpwpwp') this.$http.get('/category/getCategoryTree').then(res => { this.insertList = res.data.data.filter(item => item.name === '组件服务一')[0] this.radio = item.infoList.filter(val => val.attrType === '组件类型')[0].attrValue