From c56ba92667b2b5dded272fb60ad0c2af4983cd43 Mon Sep 17 00:00:00 2001 From: wujingjing <gersonwu@qq.com> Date: 星期三, 05 三月 2025 17:09:55 +0800 Subject: [PATCH] 修改意见 --- src/components/chat/components/playBar/businessTable/index.vue | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/components/chat/components/playBar/businessTable/index.vue b/src/components/chat/components/playBar/businessTable/index.vue index ddfa547..122c807 100644 --- a/src/components/chat/components/playBar/businessTable/index.vue +++ b/src/components/chat/components/playBar/businessTable/index.vue @@ -385,8 +385,10 @@ const indexMapItem = getIndexMapItem(columns); return (res.values || []).map((item, index) => { const row = {} as any; - item?.forEach((item, index) => { - row[indexMapItem.get(index).name] = item; + item?.forEach((item, index, array) => { + if (indexMapItem.get(index)) { + row[indexMapItem.get(index).name] = item; + } }); return row; }); @@ -422,7 +424,7 @@ orderMap.set(prop, order); column.order = getEleOrder(order); } - node.tableData = parseRecordData(res, tableColumns.value); + node.tableData = parseRecordData(res, node.columns ?? []); }; const handleSearchInput = async (prop?, order?, column?) => { -- Gitblit v1.9.3