From 9cd92dc12c4a6b9ca59313a5d31325bc1eab7da2 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Wed, 6 Aug 2025 10:37:29 +0800 Subject: [PATCH] refactor: update dashboard get view --- frontend/src/api/chat.ts | 3 +++ frontend/src/views/dashboard/editor/ChatChartSelection.vue | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/src/api/chat.ts b/frontend/src/api/chat.ts index df842629..c1b526c7 100644 --- a/frontend/src/api/chat.ts +++ b/frontend/src/api/chat.ts @@ -301,6 +301,9 @@ export const chatApi = { get: (id: number): Promise => { return request.get(`/chat/get/${id}`) }, + get_with_Data: (id: number): Promise => { + return request.get(`/chat/get/with_data/${id}`) + }, get_chart_data: (record_id?: number): Promise => { return request.get(`/chat/record/get/${record_id}/data`) }, diff --git a/frontend/src/views/dashboard/editor/ChatChartSelection.vue b/frontend/src/views/dashboard/editor/ChatChartSelection.vue index 503b3e58..e9479373 100644 --- a/frontend/src/views/dashboard/editor/ChatChartSelection.vue +++ b/frontend/src/views/dashboard/editor/ChatChartSelection.vue @@ -169,7 +169,7 @@ function onClickHistory(chat: Chat) { currentChatId.value = chat.id loading.value = true chatApi - .get(chat.id) + .get_with_Data(chat.id) .then((res) => { const info = chatApi.toChatInfo(res) if (info) {