File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
frontend/src/pages/addFlow/components Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -62,6 +62,7 @@ const Index = (props) => {
6262 const dispatch = useAppDispatch ( ) ;
6363 const runningAippId = useRef ( ) ;
6464 const runningVersion = useRef ( ) ;
65+ const chatIdRef = useRef < string | undefined > ( ) ;
6566
6667 // 关闭测试抽屉
6768 const handleCloseDebug = ( ) => {
@@ -118,6 +119,9 @@ const Index = (props) => {
118119 'dimension' : values . dimension
119120 }
120121 } ;
122+ if ( chatIdRef . current ) {
123+ chatParams [ 'chat_id' ] = chatIdRef . current ;
124+ }
121125 handleRun ( chatParams ) ;
122126 } ;
123127
@@ -149,6 +153,7 @@ const Index = (props) => {
149153 if ( ! getReady && receiveData . status === 'ERROR' ) {
150154 setLoading ( false ) ;
151155 Message ( { type : 'error' , content : t ( 'startDebugFail' ) } ) ;
156+ chatIdRef . current = receiveData . chat_id ;
152157 break ;
153158 }
154159 if ( receiveData . status === 'READY' && ! getReady ) {
@@ -192,6 +197,7 @@ const Index = (props) => {
192197 setChatConfig ( obj ) ;
193198 setOpen ( true ) ;
194199 }
200+ chatIdRef . current = messageData . chat_id ;
195201 } ) ;
196202 } catch ( err ) {
197203 console . info ( err ) ;
You can’t perform that action at this time.
0 commit comments