import uuid from 'es6-uuid';
<Table rowKey="ids" />
if (res?.data?.length) {
res?.data.map((item) => {
item.ids = uuid(64);
if (item?.children && item.children.length !== 0) {
item?.children.map((e) => {
e.ids = uuid(32);
});
}
});
}
给后端返回的数据增加唯一的id
于 2023-05-08 10:59:20 首次发布