Skip to content

Commit

Permalink
解决添加新的对话,对话列表自动更新问题
Browse files Browse the repository at this point in the history
  • Loading branch information
dusx1981 committed Aug 10, 2024
1 parent 621c5a3 commit a93bbbe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions web/components/chat/completion.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ const Completion = ({ messages, onSubmit }: Props) => {
}, []);

useEffect(() => {
refreshDialogList();
setTimeout(() => {
scrollableRef.current?.scrollTo(0, scrollableRef.current.scrollHeight);
}, 50);
Expand Down

0 comments on commit a93bbbe

Please sign in to comment.