接口调整,前端进行调整
parent
079ec0cbde
commit
d04512d638
|
|
@ -475,10 +475,10 @@
|
|||
tableDataByTableName(querys).then((res) => {
|
||||
setTableData(res.data);
|
||||
let arr: any = [];
|
||||
res.head.forEach((element, index) => {
|
||||
res.headName.forEach((element, index) => {
|
||||
arr.push({
|
||||
title: res.headName[index],
|
||||
dataIndex: element,
|
||||
title: element.comment ? element.comment : element.columnName,
|
||||
dataIndex: element.columnName,
|
||||
});
|
||||
});
|
||||
headData.value = arr;
|
||||
|
|
|
|||
Loading…
Reference in New Issue