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