diff --git a/public/logo.png b/public/logo.png
new file mode 100644
index 000000000..ce1ae793e
Binary files /dev/null and b/public/logo.png differ
diff --git a/public/logo.svg b/public/logo.svg
deleted file mode 100644
index f58a84dce..000000000
--- a/public/logo.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/src/components/Layout/navbar.tsx b/src/components/Layout/navbar.tsx
index 908cf8645..f5395c991 100644
--- a/src/components/Layout/navbar.tsx
+++ b/src/components/Layout/navbar.tsx
@@ -34,7 +34,7 @@ const Navbar = ({
>
{/* logo */}
-
+
{/* 导航列表 */}
diff --git a/src/components/Layout/navbarPhone.tsx b/src/components/Layout/navbarPhone.tsx
index ca7a49c67..763599509 100644
--- a/src/components/Layout/navbarPhone.tsx
+++ b/src/components/Layout/navbarPhone.tsx
@@ -45,15 +45,15 @@ const NavbarPhone = ({
-
+
-
-
+
+
{navbarList.map((item) => (
{
@@ -61,8 +61,7 @@ const NavbarPhone = ({
onClose();
}}
cursor={'pointer'}
- fontSize={'sm'}
- h={'65px'}
+ h={'60px'}
borderRadius={'md'}
{...(item.activeLink.includes(router.pathname)
? {
diff --git a/src/components/Markdown/index.module.scss b/src/components/Markdown/index.module.scss
index df120ae62..d0c6787d6 100644
--- a/src/components/Markdown/index.module.scss
+++ b/src/components/Markdown/index.module.scss
@@ -374,5 +374,6 @@
background-color: #222;
color: #fff;
width: 100%;
+ font-family: 'Söhne,ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif,Helvetica Neue,Arial,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji';
}
}
diff --git a/src/pages/chat/index.tsx b/src/pages/chat/index.tsx
index 5ff11dd68..62b350a7a 100644
--- a/src/pages/chat/index.tsx
+++ b/src/pages/chat/index.tsx
@@ -49,36 +49,32 @@ const Chat = () => {
}, []);
// 初始化聊天框
- const { isInitialLoading } = useQuery(
- [chatId, windowId],
- () => (chatId ? getInitChatSiteInfo(chatId, windowId) : null),
- {
- cacheTime: 5 * 60 * 1000,
- onSuccess(res) {
- if (!res) return;
- router.replace(`/chat?chatId=${chatId}&windowId=${res.windowId}`);
+ useQuery([chatId, windowId], () => (chatId ? getInitChatSiteInfo(chatId, windowId) : null), {
+ cacheTime: 5 * 60 * 1000,
+ onSuccess(res) {
+ if (!res) return;
+ router.replace(`/chat?chatId=${chatId}&windowId=${res.windowId}`);
- setChatSiteData(res.chatSite);
- setChatList(
- res.history.map((item) => ({
- ...item,
- status: 'finish'
- }))
- );
- scrollToBottom();
- setIsLoading(false);
- },
- onError() {
- toast({
- title: '初始化异常,请刷新',
- status: 'error',
- isClosable: true,
- duration: 5000
- });
- setIsLoading(false);
- }
+ setChatSiteData(res.chatSite);
+ setChatList(
+ res.history.map((item) => ({
+ ...item,
+ status: 'finish'
+ }))
+ );
+ scrollToBottom();
+ setIsLoading(false);
+ },
+ onError() {
+ toast({
+ title: '初始化异常,请刷新',
+ status: 'error',
+ isClosable: true,
+ duration: 5000
+ });
+ setIsLoading(false);
}
- );
+ });
// gpt3 方法
const gpt3ChatPrompt = useCallback(
@@ -291,7 +287,7 @@ const Chat = () => {
borderBottom={'1px solid rgba(0,0,0,0.1)'}
>
-
+