Sfoglia il codice sorgente

单应用免登录版 取消侧边栏的 【回到首页】

Ryuiso 1 settimana fa
parent
commit
8a4b845224
1 ha cambiato i file con 9 aggiunte e 9 eliminazioni
  1. 9 9
      app/components/sidebar.tsx

+ 9 - 9
app/components/sidebar.tsx

@@ -375,16 +375,16 @@ export const SideBar = (props: { className?: string }) => {
             logo={getType() === 'bigModel' ? <img style={{ height: 40 }} src={faviconSrc.src} /> : ''}
           >
             <div style={{ display: 'flex', justifyContent: 'space-between', marginBottom: 10 }}>
+              {/*<Button*/}
+              {/*  style={{ width: '48%' }}*/}
+              {/*  onClick={() => {*/}
+              {/*    navigate({ pathname: '/' });*/}
+              {/*  }}*/}
+              {/*>*/}
+              {/*  回到首页*/}
+              {/*</Button>*/}
               <Button
-                style={{ width: '48%' }}
-                onClick={() => {
-                  navigate({ pathname: '/' });
-                }}
-              >
-                回到首页
-              </Button>
-              <Button
-                style={{ width: '48%' }}
+                style={{ width: '100%' }}
                 type="primary"
                 onClick={async () => {
                   chatStore.clearSessions();