From d25f91a13b1e1b040c4212475d66f7a20e8ea10b Mon Sep 17 00:00:00 2001 From: ulleo Date: Tue, 5 Aug 2025 13:43:56 +0800 Subject: [PATCH] fix: export table data button --- frontend/src/views/chat/chat-block/ChartBlock.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/src/views/chat/chat-block/ChartBlock.vue b/frontend/src/views/chat/chat-block/ChartBlock.vue index fc07a25b..86ab2b36 100644 --- a/frontend/src/views/chat/chat-block/ChartBlock.vue +++ b/frontend/src/views/chat/chat-block/ChartBlock.vue @@ -117,7 +117,9 @@ const chartObject = computed<{ return {} }) -const currentChartType = ref(undefined) +const currentChartType = ref( + props.chatType ?? chartObject.value.type ?? 'table' +) const chartType = computed({ get() {