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) {