refactor: update dashboard get view

This commit is contained in:
wangjiahao
2025-08-06 10:37:29 +08:00
parent 2d7dda7fa4
commit 9cd92dc12c
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -301,6 +301,9 @@ export const chatApi = {
get: (id: number): Promise<ChatInfo> => {
return request.get(`/chat/get/${id}`)
},
get_with_Data: (id: number): Promise<ChatInfo> => {
return request.get(`/chat/get/with_data/${id}`)
},
get_chart_data: (record_id?: number): Promise<any> => {
return request.get(`/chat/record/get/${record_id}/data`)
},
@@ -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) {