From b6900dd975db473c4c0c1a6317a69a19ca7958d1 Mon Sep 17 00:00:00 2001 From: ulleo Date: Thu, 10 Jul 2025 19:17:39 +0800 Subject: [PATCH] fix: lint --- frontend/src/api/chat.ts | 4 ++-- frontend/src/views/chat/index.vue | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/src/api/chat.ts b/frontend/src/api/chat.ts index af085692..2e3c6857 100644 --- a/frontend/src/api/chat.ts +++ b/frontend/src/api/chat.ts @@ -283,10 +283,10 @@ export const chatApi = { get: (id: number): Promise => { return request.get(`/chat/get/${id}`) }, - get_chart_data: (record_id: number): Promise => { + get_chart_data: (record_id?: number): Promise => { return request.get(`/chat/record/get/${record_id}/data`) }, - get_chart_predict_data: (record_id: number): Promise => { + get_chart_predict_data: (record_id?: number): Promise => { return request.get(`/chat/record/get/${record_id}/predict_data`) }, startChat: (data: any): Promise => { diff --git a/frontend/src/views/chat/index.vue b/frontend/src/views/chat/index.vue index 2b4be977..4ce182ed 100644 --- a/frontend/src/views/chat/index.vue +++ b/frontend/src/views/chat/index.vue @@ -507,7 +507,7 @@ const sendMessage = async () => { } } -function getChatData(recordId) { +function getChatData(recordId?: number) { chatApi.get_chart_data(recordId).then((response) => { currentChat.value.records.forEach((record) => { if (record.id === recordId) { @@ -517,7 +517,7 @@ function getChatData(recordId) { }) } -function getChatPredictData(recordId) { +function getChatPredictData(recordId?: number) { chatApi.get_chart_predict_data(recordId).then((response) => { currentChat.value.records.forEach((record) => { if (record.id === recordId) {