接口调整,前端进行调整

main
刘妍 2025-04-30 16:16:34 +08:00
parent 079ec0cbde
commit d04512d638
1 changed files with 4 additions and 4 deletions

View File

@ -475,10 +475,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;
@ -569,7 +569,7 @@
margin-left: 10px; margin-left: 10px;
} }
} }
.detail-content{ .detail-content {
overflow-y: scroll; overflow-y: scroll;
height: 80vh; height: 80vh;
} }