Update Home component to create new session on double click

This commit is contained in:
dakai 2023-04-06 11:12:40 +08:00
parent f2528d8fee
commit 7d4a3d51c3

View File

@ -158,6 +158,9 @@ function _Home() {
setSideBarCollapse(true); setSideBarCollapse(true);
} }
}} }}
onDoubleClick={() => {
createNewSession();
}}
> >
<ChatList /> <ChatList />
</div> </div>