Elements-SY

modify

...@@ -465,9 +465,11 @@ export function restTableHeight($refs) { ...@@ -465,9 +465,11 @@ export function restTableHeight($refs) {
465 * 当指定一个字段去重时:removeDuplicates(arr, "name") 465 * 当指定一个字段去重时:removeDuplicates(arr, "name")
466 * 当指定一个字段去重并且排序如下: 466 * 当指定一个字段去重并且排序如下:
467 * removeDuplicates(res.data.list, { 467 * removeDuplicates(res.data.list, {
468 - * duplicate: "name", // 去重字段 468 + * duplicate: "flightRoute", // 去重字段
469 + * dateTime: "createTime", // 从重复的数据中根据时间取最新的一条
470 + * sort: false, // 是否要排序
469 * sortType: "Number", // 排序类型 471 * sortType: "Number", // 排序类型
470 - * sortAttr: "id", // 排序字段 472 + * sortAttr: "routePriority", // 排序字段
471 * }) 473 * })
472 */ 474 */
473 export function removeDuplicates(arr, keys) { 475 export function removeDuplicates(arr, keys) {
......