mirror of
https://gh-proxy.org/https://github.com/klinsmaya/SQLBot.git
synced 2026-11-08 01:06:59 +08:00
refactor: update dashboard get view
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user