mirror of
https://github.com/Yidadaa/ChatGPT-Next-Web.git
synced 2025-08-19 22:18:38 +08:00
fix: fix #82, close sidebar after new session
This commit is contained in:
@@ -561,7 +561,10 @@ export function Home() {
|
|||||||
<IconButton
|
<IconButton
|
||||||
icon={<AddIcon />}
|
icon={<AddIcon />}
|
||||||
text={Locale.Home.NewChat}
|
text={Locale.Home.NewChat}
|
||||||
onClick={createNewSession}
|
onClick={()=>{
|
||||||
|
createNewSession();
|
||||||
|
setShowSideBar(false);
|
||||||
|
}}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Reference in New Issue
Block a user