File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -477,6 +477,7 @@ const scrollBottom = () => {
477477}
478478
479479const handleScroll = (val : any ) => {
480+ if (! isCompletePage .value ) return
480481 scrollTopVal = val .scrollTop
481482 scrolling = true
482483 clearTimeout (scrollingTime )
@@ -676,10 +677,12 @@ const sendMessage = async ($event: any = {}) => {
676677
677678 loading .value = true
678679 isTyping .value = true
679- scrollTopVal = innerRef .value ! .clientHeight
680- scrollTime = setInterval (() => {
681- scrollBottom ()
682- }, 300 )
680+ if (isCompletePage .value ) {
681+ scrollTopVal = innerRef .value ! .clientHeight
682+ scrollTime = setInterval (() => {
683+ scrollBottom ()
684+ }, 300 )
685+ }
683686 await assistantPrepareSend ()
684687 const currentRecord = new ChatRecord ()
685688 currentRecord .create_time = new Date ()
You can’t perform that action at this time.
0 commit comments