Skip to content

Commit b6900dd

Browse files
committed
fix: lint
1 parent c909cb7 commit b6900dd

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

frontend/src/api/chat.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -283,10 +283,10 @@ export const chatApi = {
283283
get: (id: number): Promise<ChatInfo> => {
284284
return request.get(`/chat/get/${id}`)
285285
},
286-
get_chart_data: (record_id: number): Promise<any> => {
286+
get_chart_data: (record_id?: number): Promise<any> => {
287287
return request.get(`/chat/record/get/${record_id}/data`)
288288
},
289-
get_chart_predict_data: (record_id: number): Promise<any> => {
289+
get_chart_predict_data: (record_id?: number): Promise<any> => {
290290
return request.get(`/chat/record/get/${record_id}/predict_data`)
291291
},
292292
startChat: (data: any): Promise<ChatInfo> => {

frontend/src/views/chat/index.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ const sendMessage = async () => {
507507
}
508508
}
509509
510-
function getChatData(recordId) {
510+
function getChatData(recordId?: number) {
511511
chatApi.get_chart_data(recordId).then((response) => {
512512
currentChat.value.records.forEach((record) => {
513513
if (record.id === recordId) {
@@ -517,7 +517,7 @@ function getChatData(recordId) {
517517
})
518518
}
519519
520-
function getChatPredictData(recordId) {
520+
function getChatPredictData(recordId?: number) {
521521
chatApi.get_chart_predict_data(recordId).then((response) => {
522522
currentChat.value.records.forEach((record) => {
523523
if (record.id === recordId) {

0 commit comments

Comments
 (0)