File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff 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 > => {
Original file line number Diff line number Diff 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 ) {
You can’t perform that action at this time.
0 commit comments