实现的方式: 在columns中序号的一列 使用render方法:(text,record,index)=>`${index+1}`,使序号+1
const columns = [
{
title: '序号',
width:80,
render:(text,record,index)=>`${index+1}`
},{
title: '门店名',
dataIndex: 'name',
},
-------------------------------------------------------------------------------------------------------------------------------------------------------------------如遇到问题:+WX:WAZJ-0508,及时联系---------------------------------------------------------------------------------------------------------------------------------------------------