Compare commits

...

2 Commits

1 changed files with 4 additions and 4 deletions

View File

@ -477,10 +477,10 @@
tableDataByTableName(querys).then((res) => { tableDataByTableName(querys).then((res) => {
setTableData(res.data); setTableData(res.data);
let arr: any = []; let arr: any = [];
res.head.forEach((element, index) => { res.headName.forEach((element, index) => {
arr.push({ arr.push({
title: res.headName[index], title: element.comment ? element.comment : element.columnName,
dataIndex: element, dataIndex: element.columnName,
}); });
}); });
headData.value = arr; headData.value = arr;