From 8d52debc330262f1d78bcd787503943f4fa7684f Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Tue, 2 Sep 2025 22:54:31 +0800 Subject: [PATCH] refactor: Support adding the modified chart with retained type to the dashboard --- frontend/src/views/chat/chat-block/ChartBlock.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/views/chat/chat-block/ChartBlock.vue b/frontend/src/views/chat/chat-block/ChartBlock.vue index f589fc41..a0553e8a 100644 --- a/frontend/src/views/chat/chat-block/ChartBlock.vue +++ b/frontend/src/views/chat/chat-block/ChartBlock.vue @@ -216,7 +216,7 @@ function addToDashboard() { // @ts-expect-error eslint-disable-next-line @typescript-eslint/ban-ts-comment const chartBaseInfo = JSON.parse(props.message?.record?.chart) recordeInfo['chart'] = { - type: chartBaseInfo.type, + type: currentChartType.value, title: chartBaseInfo.title, columns: chartBaseInfo.columns, xAxis: chartBaseInfo.axis?.x ? [chartBaseInfo.axis.x] : [],