使用entries
for (const [index, item] of that.tableData.entries()) {
await that.getdata2(item, index)
}
for (const [index, item] of that.tableData.entries()) {
await that.getdata2(item, index)
}