فهرست منبع

Merge branch 'dev/app' of https://git.zyuas.com/LLM/chat-client-web into app-permission

* 'dev/app' of https://git.zyuas.com/LLM/chat-client-web:
  修改web端点击聊天后隐藏菜单
Ryuiso 6 ماه پیش
والد
کامیت
581265af89
1فایلهای تغییر یافته به همراه6 افزوده شده و 2 حذف شده
  1. 6 2
      app/components/sidebar.tsx

+ 6 - 2
app/components/sidebar.tsx

@@ -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') {