Commit 9807cfe4 by weiw

fix: 处理点击新建对话的逻辑

parent c52e6408
......@@ -51,6 +51,7 @@ const NavbarBase: React.FC<NavbarProps & WithAuthProps> = ({ isHistoryVisible, c
if (type === 'add') {
handleCreateConversation()
onSetHistoryVisible(false)
}
if (type === 'history') {
......
import { useEffect, useState } from 'react'
import { Button, Modal, ModalBody, ModalContent, ModalFooter, ModalHeader, Tooltip } from '@heroui/react'
import { motion } from 'framer-motion'
import { ChatMaskBar } from '../Chat/components/ChatMaskBar'
import { ChatSlogan } from '../Chat/components/ChatSlogan'
import { formatMarkdown } from '../Chat/components/ChatItem/markdownFormatter'
import { ChatAnswerAttachment } from '../Chat/components/ChatItem/ChatAnswerAttchment'
import styles from './Collect.module.less'
......@@ -92,9 +90,9 @@ export const Collect: React.FC = () => {
return (
<div className={styles.scrollView}>
<div className={`${styles.collectPage} relative`}>
<ChatSlogan />
<ChatMaskBar />
<div className="content h-full overflow-y-auto">
{/* <ChatSlogan />
<ChatMaskBar /> */}
<div className="content h-full overflow-y-auto pt-[24px]">
<motion.div
className={`${styles.collectScrollable} scrollbar-hide`}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment