fix: lint

This commit is contained in:
ulleo
2025-07-10 19:17:39 +08:00
parent c909cb78d8
commit b6900dd975
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -283,10 +283,10 @@ export const chatApi = {
get: (id: number): Promise<ChatInfo> => {
return request.get(`/chat/get/${id}`)
},
get_chart_data: (record_id: number): Promise<any> => {
get_chart_data: (record_id?: number): Promise<any> => {
return request.get(`/chat/record/get/${record_id}/data`)
},
get_chart_predict_data: (record_id: number): Promise<any> => {
get_chart_predict_data: (record_id?: number): Promise<any> => {
return request.get(`/chat/record/get/${record_id}/predict_data`)
},
startChat: (data: any): Promise<ChatInfo> => {
+2 -2
View File
@@ -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) {