feat: 去除所有接口中的 vo

This commit is contained in:
xingyu4j
2025-06-25 18:51:13 +08:00
parent c59ebbecfd
commit ab4e467b45
3 changed files with 3 additions and 9 deletions

View File

@@ -260,9 +260,7 @@ async function handleClearConversation() {
}
/** 对话置顶 */
async function handleTop(
conversation: AiChatConversationApi.ChatConversation,
) {
async function handleTop(conversation: AiChatConversationApi.ChatConversation) {
// 更新对话置顶
conversation.pinned = !conversation.pinned;
await updateChatConversationMy(conversation);

View File

@@ -307,9 +307,7 @@ async function doSendMessage(content: string) {
}
/** 真正执行【发送】消息操作 */
async function doSendMessageStream(
userMessage: AiChatMessageApi.ChatMessage,
) {
async function doSendMessageStream(userMessage: AiChatMessageApi.ChatMessage) {
// 创建 AbortController 实例,以便中止请求
conversationInAbortController.value = new AbortController();
// 标记对话进行中

View File

@@ -93,9 +93,7 @@ const [Grid, gridApi] = useVbenVxeGrid({
});
/** 修改是否发布 */
async function handleStatusChange(
row: AiKnowledgeSegmentApi.KnowledgeSegment,
) {
async function handleStatusChange(row: AiKnowledgeSegmentApi.KnowledgeSegment) {
try {
// 修改状态的二次确认
const text = row.status ? '启用' : '禁用';