From 52aad312203fbff7b71152c072ec2c61545d2fd5 Mon Sep 17 00:00:00 2001 From: ulleo Date: Mon, 1 Dec 2025 18:39:37 +0800 Subject: [PATCH] feat: chat table support copy value via right click --- frontend/src/views/chat/component/charts/Table.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/views/chat/component/charts/Table.ts b/frontend/src/views/chat/component/charts/Table.ts index 30110be0..11a2e241 100644 --- a/frontend/src/views/chat/component/charts/Table.ts +++ b/frontend/src/views/chat/component/charts/Table.ts @@ -109,10 +109,11 @@ function copyData(event: any, s2?: TableSheet) { const cellMeta = s2.facet.getCellMeta(c.rowIndex, c.colIndex) console.log(cellMeta) if (cellMeta) { - let value = cellMeta.fieldValue as string + let value = cellMeta.fieldValue if (value === null || value === undefined) { value = '' } + value = value + '' copyToClipboard(value).finally(() => { ElMessage.success(t('qa.copied')) console.debug('copied:', cellMeta.fieldValue)