給columns加多一列即可:
const columns = [ { title: "序號", key: "index", render: (_, record, index) => index + 1, }, ... ]
如圖: