fix: 修复ipam type 下拉重复内容

This commit is contained in:
@changcode
2022-03-21 18:05:33 +08:00
parent 0aa0716ce5
commit 72435b9581
3 changed files with 13 additions and 40 deletions

View File

@@ -237,6 +237,14 @@ export default {
id: e.type.id
}
})
for (let i = 0; i < this.typeDataList.length - 1; i++) {
for (let j = i + 1; j < this.typeDataList.length; j++) {
if (this.typeDataList[i].id == this.typeDataList[j].id) {
this.typeDataList.splice(j, 1)
j--
}
}
}
})
}
}