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)