that.phoneList = that.unique(that.phoneList,'id')

unique(arr, key) {
    const res = new Map();
    return arr.filter((arr) => !res.has(arr[key]) && res.set(arr[key], 1));
  },    

其中以id作为检验数据的唯一

Logo

前往低代码交流专区

更多推荐