fix: fix #82, close sidebar after new session

This commit is contained in:
AprilNEA 2023-03-28 11:51:36 +08:00
parent 7268719399
commit f7539e13b3
1 changed files with 4 additions and 1 deletions

View File

@ -561,7 +561,10 @@ export function Home() {
<IconButton
icon={<AddIcon />}
text={Locale.Home.NewChat}
onClick={createNewSession}
onClick={()=>{
createNewSession();
setShowSideBar(false);
}}
/>
</div>
</div>