|
|
@@ -575,7 +575,9 @@ export const SideBar = (props: { className?: string }) => {
|
|
|
chatStore.updateCurrentSession((value) => {
|
|
|
value.appId = globalStore.selectedAppId;
|
|
|
});
|
|
|
- globalStore.setShowMenu(false);
|
|
|
+ if (isMobileScreen) {
|
|
|
+ globalStore.setShowMenu(false);
|
|
|
+ }
|
|
|
if (getType() === 'bigModel') {
|
|
|
navigate({ pathname: '/newChat' });
|
|
|
} else {
|
|
|
@@ -625,7 +627,9 @@ export const SideBar = (props: { className?: string }) => {
|
|
|
// @ts-ignore
|
|
|
const props = info.item.props;
|
|
|
const { showMenu, chatMode, appId } = props;
|
|
|
- globalStore.setShowMenu(false);
|
|
|
+ if (isMobileScreen) {
|
|
|
+ globalStore.setShowMenu(false);
|
|
|
+ }
|
|
|
let url = ``;
|
|
|
if (getType() === 'bigModel') {
|
|
|
if (chatStore.chatMode === 'LOCAL') {
|