This commit is contained in:
gaoyuanwei 2022-07-14 11:43:42 +08:00
parent 0194a9b146
commit de1868eb5c
1 changed files with 7 additions and 0 deletions

View File

@ -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