Table data is deduplicated according to id

this.tableData = this.tableData.filter((item, index, self) => {
         return self.findIndex((obj) => obj.id === item.id) === index;       
 });

tableData is the data bound to the table,
deduplicated according to the id

Guess you like

Origin blog.csdn.net/qq_46376192/article/details/131976867