历史会话

main
wangyunfei 1 day ago
parent 30e430deb4
commit 02aa1993f7

@ -136,7 +136,7 @@ function ChatConversation() {
setInputValue('')
setLoading(true)
try {
// 准备发送给API的消息历史
const apiMessages = currentMessages.map(msg => ({
@ -354,21 +354,19 @@ function ChatConversation() {
</div>
{/* 模型切换 */}
<div
{/* <Select
defaultValue="智能定性"
// icon={<RobotOutlined />}
style={{
minWidth: 120, maxWidth: 200, marginRight: 8
}}
// onchange={handleChange}
// options={[
// { value: "智能定性", label: "智能定性" },
// // { value: "GPT-5 mini", label: "GPT-5 mini" },
// // { value: "Claude Sonnet 4", label: "Claude Sonnet 4" },
// // { value: "Kimi Senior", label: "Kimi Senior" },
// ]}
>
</div>
onchange={handleChange}
options={[
{ value: "智能定性", label: "智能定性" },
// { value: "GPT-5 mini", label: "GPT-5 mini" },
// { value: "Claude Sonnet 4", label: "Claude Sonnet 4" },
// { value: "Kimi Senior", label: "Kimi Senior" },
]}>
</Select> */}
{/* 上传文件 */}
<Upload className='ds-uploading'>
@ -397,9 +395,9 @@ function ChatConversation() {
<Select
className='ds-select'
dropdownClassName="ds-select-dropdown"
defaultValue="模型反馈"
defaultValue="模型反馈"
style={{
minWidth: 120, maxWidth: 200, marginLeft: 'auto', marginRight: 8
minWidth: 120, maxWidth: 200, marginLeft: 'auto',marginRight: 8
}}
onchange={handleChange}
options={[

@ -54,7 +54,7 @@ const menuItem = [
// icon: <SettingOutlined />,
},
{
label: '智能对话',
label: '智能对话',
key: '/topnavbar00/hrefficiency/ChatConversation',
},
// {
@ -204,10 +204,9 @@ const TopNavBar = (props) => {
<Col xs={12} sm={12} md={12} lg={12} xl={12} className={styles.tabBarLeft}>
{/* <img src={Logo} alt='logo' className={styles.leftLogo} /> */}
<div style={{ fontSize: '1.2em', color: 'white', fontWeight: 'bold' }}>AI文档审阅系统</div>
{/* <Menu mode='horizontal' className={styles.leftMenu} selectedKeys={[activeKey]} items={menuItems} onClick={value => setRouteActive(value)} /> */}
</Col>
{/* <Col xs={12} sm={12} md={12} lg={12} xl={12} className={styles.tabBarLeft}>
<img src={Logo} alt='logo' className={styles.leftLogo} />
<Menu mode='horizontal' className={styles.leftMenu} selectedKeys={[activeKey]} items={menuItems} onClick={value => setRouteActive(value)} />
@ -228,7 +227,10 @@ const TopNavBar = (props) => {
{/* 修改当路由为智能对话页时渲染历史会话组件renderPageContent其它路由不变 */}
<div className={styles.contentMain} style={{ height: 'auto', backgroundColor: 'inherit' }}>
<Outlet />
</div>
<div className={styles.contentHistory}>
{renderPageContent('conversation', conversationConversations, conversationExpanded)}
</div>
{/* 底部版权信息 */}
<div className='footerCopyright' style={{

@ -1,6 +1,7 @@
.layoutContainer {
height: 100%;
background-color: #f0f2f5;
position: relative;
.tabBarHeader {
background-color: #fff;
@ -53,4 +54,14 @@
// height: calc(100% - 46px);
overflow-y: hidden;
}
}
.contentHistory {
height: 40%;
overflow-y: auto;
overflow-x: hidden;
background: transparent;
position: absolute;
top: 65%;
left: 10%;
}
}

@ -603,8 +603,8 @@
.pageExpandedContent {
margin: 4px 14px 4px 12px;
padding: 6px 10px 8px 10px;
width: 12vw;
background: #fff;
width: 10.5vw;
background: transparent;
display: flex;
border: 1px solid #e5e5e5; // 新增外边框
border-radius: 6px;
@ -687,6 +687,7 @@
&:hover {
background: #f0f0f0;
width: 9vw;
.conversationActions {
opacity: 1;
@ -696,10 +697,12 @@
&.active {
background: #e6f7ff;
border-color: #91d5ff;
width: 9vw;
.conversationTitle .titleText {
color: #1890ff;
font-weight: 500;
// width: 9vw;
}
}

Loading…
Cancel
Save