Skip to content

Commit 9cd92dc

Browse files
committed
refactor: update dashboard get view
1 parent 2d7dda7 commit 9cd92dc

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

frontend/src/api/chat.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,9 @@ export const chatApi = {
301301
get: (id: number): Promise<ChatInfo> => {
302302
return request.get(`/chat/get/${id}`)
303303
},
304+
get_with_Data: (id: number): Promise<ChatInfo> => {
305+
return request.get(`/chat/get/with_data/${id}`)
306+
},
304307
get_chart_data: (record_id?: number): Promise<any> => {
305308
return request.get(`/chat/record/get/${record_id}/data`)
306309
},

frontend/src/views/dashboard/editor/ChatChartSelection.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ function onClickHistory(chat: Chat) {
169169
currentChatId.value = chat.id
170170
loading.value = true
171171
chatApi
172-
.get(chat.id)
172+
.get_with_Data(chat.id)
173173
.then((res) => {
174174
const info = chatApi.toChatInfo(res)
175175
if (info) {

0 commit comments

Comments
 (0)