|
|
@@ -581,65 +581,65 @@ export const SideBar = (props: { className?: string }) => {
|
|
|
<div className={styles["sidebar-action-group"]}>
|
|
|
<Button
|
|
|
className={styles["sidebar-action-button"]}
|
|
|
- icon={<HomeOutlined />}
|
|
|
+ icon={<PlusOutlined />}
|
|
|
onClick={() => {
|
|
|
navigate({ pathname: '/' });
|
|
|
}}
|
|
|
- >
|
|
|
- 回到首页
|
|
|
- </Button>
|
|
|
- <Button
|
|
|
- className={styles["sidebar-action-button"]}
|
|
|
- icon={<PlusOutlined />}
|
|
|
- onClick={async () => {
|
|
|
- chatStore.clearSessions();
|
|
|
- chatStore.updateCurrentSession((value) => {
|
|
|
- value.appId = globalStore.selectedAppId;
|
|
|
- });
|
|
|
- if (isMobileScreen) {
|
|
|
- closeSidebar();
|
|
|
- }
|
|
|
- if (getType() === 'bigModel') {
|
|
|
- navigate({ pathname: '/newChat' });
|
|
|
- } else {
|
|
|
- navigate({ pathname: '/newDeepseekChat' });
|
|
|
- }
|
|
|
- if (getType() === 'bigModel') {
|
|
|
- if (chatStore.chatMode === 'LOCAL') {
|
|
|
- await fetchChatList(chatStore.chatMode);
|
|
|
- } else {
|
|
|
- await fetchChatList();
|
|
|
- }
|
|
|
- } else {
|
|
|
- await fetchChatList();
|
|
|
- }
|
|
|
- }}
|
|
|
>
|
|
|
新建对话
|
|
|
</Button>
|
|
|
+ {/*<Button*/}
|
|
|
+ {/* className={styles["sidebar-action-button"]}*/}
|
|
|
+ {/* icon={<PlusOutlined />}*/}
|
|
|
+ {/* onClick={async () => {*/}
|
|
|
+ {/* chatStore.clearSessions();*/}
|
|
|
+ {/* chatStore.updateCurrentSession((value) => {*/}
|
|
|
+ {/* value.appId = globalStore.selectedAppId;*/}
|
|
|
+ {/* });*/}
|
|
|
+ {/* if (isMobileScreen) {*/}
|
|
|
+ {/* closeSidebar();*/}
|
|
|
+ {/* }*/}
|
|
|
+ {/* if (getType() === 'bigModel') {*/}
|
|
|
+ {/* navigate({ pathname: '/newChat' });*/}
|
|
|
+ {/* } else {*/}
|
|
|
+ {/* navigate({ pathname: '/newDeepseekChat' });*/}
|
|
|
+ {/* }*/}
|
|
|
+ {/* if (getType() === 'bigModel') {*/}
|
|
|
+ {/* if (chatStore.chatMode === 'LOCAL') {*/}
|
|
|
+ {/* await fetchChatList(chatStore.chatMode);*/}
|
|
|
+ {/* } else {*/}
|
|
|
+ {/* await fetchChatList();*/}
|
|
|
+ {/* }*/}
|
|
|
+ {/* } else {*/}
|
|
|
+ {/* await fetchChatList();*/}
|
|
|
+ {/* }*/}
|
|
|
+ {/* }}*/}
|
|
|
+ {/*>*/}
|
|
|
+ {/* 新建对话*/}
|
|
|
+ {/*</Button>*/}
|
|
|
</div>
|
|
|
- <div className={styles["sidebar-action-group"]}>
|
|
|
- <Button
|
|
|
- className={styles["sidebar-action-button"]}
|
|
|
- icon={<AppstoreOutlined />}
|
|
|
- onClick={() => {
|
|
|
- setDrawerType('all');
|
|
|
- setDrawerOpen(true);
|
|
|
- }}
|
|
|
- >
|
|
|
- 我的应用
|
|
|
- </Button>
|
|
|
- <Button
|
|
|
- className={styles["sidebar-action-button"]}
|
|
|
- icon={<StarOutlined />}
|
|
|
- onClick={() => {
|
|
|
- setDrawerType('collect');
|
|
|
- setDrawerOpen(true);
|
|
|
- }}
|
|
|
- >
|
|
|
- 我的收藏
|
|
|
- </Button>
|
|
|
- </div>
|
|
|
+ {/*<div className={styles["sidebar-action-group"]}>*/}
|
|
|
+ {/* <Button*/}
|
|
|
+ {/* className={styles["sidebar-action-button"]}*/}
|
|
|
+ {/* icon={<AppstoreOutlined />}*/}
|
|
|
+ {/* onClick={() => {*/}
|
|
|
+ {/* setDrawerType('all');*/}
|
|
|
+ {/* setDrawerOpen(true);*/}
|
|
|
+ {/* }}*/}
|
|
|
+ {/* >*/}
|
|
|
+ {/* 我的应用*/}
|
|
|
+ {/* </Button>*/}
|
|
|
+ {/* <Button*/}
|
|
|
+ {/* className={styles["sidebar-action-button"]}*/}
|
|
|
+ {/* icon={<StarOutlined />}*/}
|
|
|
+ {/* onClick={() => {*/}
|
|
|
+ {/* setDrawerType('collect');*/}
|
|
|
+ {/* setDrawerOpen(true);*/}
|
|
|
+ {/* }}*/}
|
|
|
+ {/* >*/}
|
|
|
+ {/* 我的收藏*/}
|
|
|
+ {/* </Button>*/}
|
|
|
+ {/*</div>*/}
|
|
|
</SideBarHeader>
|
|
|
<div style={{
|
|
|
fontSize: 12,
|