Commit 9512f2b5 by HoMeTown

feat: 提交

parent 27110f11
......@@ -24,7 +24,8 @@ export const ConversationModal: React.FC<ConversationModalProps> = ({ isOpen, on
},
]
const { currentConversationId, conversations } = useAppSelector(state => state.conversation)
// currentConversationId
const { conversations } = useAppSelector(state => state.conversation)
const [selectedKeys, setSelectedKeys] = React.useState(new Set([]))
const allItems = conversations.filter(item => item.conversationId)
const handleClose = () => {
......@@ -39,7 +40,7 @@ export const ConversationModal: React.FC<ConversationModalProps> = ({ isOpen, on
showToast('删除成功', 'success')
}
else {
showToast('删除失败', 'error')
showToast('当前会话不允许删除', 'error')
}
}
}
......@@ -59,12 +60,12 @@ export const ConversationModal: React.FC<ConversationModalProps> = ({ isOpen, on
</div>
</ModalHeader>
<ModalBody className="text-[#27353C]">
{/* disabledKeys={[currentConversationId || '']} */}
<Table
removeWrapper
isHeaderSticky
selectionMode="multiple"
selectedKeys={selectedKeys}
disabledKeys={[currentConversationId || '']}
onSelectionChange={keys => setSelectedKeys(keys as any)}
aria-label="table"
classNames={{
......
.blinking-cursor {
position: relative;
}
.blinking-cursor::after {
content: '|';
position: absolute;
right: -0.1em;
width: 1px;
color: black;
animation: blink 0.7s infinite;
}
@keyframes blink {
0%, 100% {
opacity: 1;
}
50% {
opacity: 0;
}
}
/* 可选:为不同的元素设置不同的光标样式 */
.thin-cursor::after {
content: '|'; /* 使用全角竖线字符 */
}
.block-cursor::after {
content: '▋'; /* 使用块状字符 */
}
/* 可选:改变光标颜色 */
.colored-cursor::after {
color: #007bff;
}
// This file is automatically generated.
// Please do not change this file!
interface CssExports {
'blink': string
'blinking-cursor': string
'blinkingCursor': string
'block-cursor': string
'blockCursor': string
'colored-cursor': string
'coloredCursor': string
'thin-cursor': string
'thinCursor': string
}
declare const cssExports: CssExports
export default cssExports
......@@ -61,7 +61,7 @@ export const ChatAnswerParser: React.FC<ChatAnswerParserProps> = ({ isLastAnswer
}, [isStopTyping])
useEffect(() => {
setHideOperate(answer.attachmentList.some(attachment => attachment.type === 'box'))
setHideOperate((answer.attachmentList || []).some(attachment => attachment.type === 'box'))
}, [answer.attachmentList])
return (
......
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