mirror of
https://gh-proxy.org/https://github.com/klinsmaya/SQLBot.git
synced 2026-11-08 09:17:06 +08:00
refactor: add log
This commit is contained in:
@@ -356,8 +356,8 @@ export const chatApi = {
|
||||
return request.get(`/chat/recent_questions/${datasource_id}`)
|
||||
},
|
||||
checkLLMModel: () => request.get('/system/aimodel/default', { requestOptions: { silent: true } }),
|
||||
export2Excel: (record_id: number | undefined) =>
|
||||
request.get(`/chat/record/${record_id}/excel/export`, {
|
||||
export2Excel: (record_id: number | undefined, chat_id: any) =>
|
||||
request.get(`/chat/record/${record_id}/excel/export/${chat_id}`, {
|
||||
responseType: 'blob',
|
||||
requestOptions: { customError: true },
|
||||
}),
|
||||
|
||||
@@ -247,7 +247,7 @@ function exportToExcel() {
|
||||
if (chartRef.value && props.recordId) {
|
||||
loading.value = true
|
||||
chatApi
|
||||
.export2Excel(props.recordId)
|
||||
.export2Excel(props.recordId, props.message?.record?.chat_id || 0)
|
||||
.then((res) => {
|
||||
const blob = new Blob([res], {
|
||||
type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
|
||||
|
||||
Reference in New Issue
Block a user