let list = []; data.forEach((element) => { tableData.value.push(element); let flag = list.findIndex(item => item == element.sortId); if (flag == -1) { list.push(element.sortId); } }); maxSortId.value = Math.max.apply(null, list);
let list = []; data.forEach((element) => { tableData.value.push(element); let flag = list.findIndex(item => item == element.sortId); if (flag == -1) { list.push(element.sortId); } }); maxSortId.value = Math.max.apply(null, list);