feat: 去除所有接口中的 vo
parent
c59ebbecfd
commit
ab4e467b45
|
|
@ -260,9 +260,7 @@ async function handleClearConversation() {
|
||||||
}
|
}
|
||||||
|
|
||||||
/** 对话置顶 */
|
/** 对话置顶 */
|
||||||
async function handleTop(
|
async function handleTop(conversation: AiChatConversationApi.ChatConversation) {
|
||||||
conversation: AiChatConversationApi.ChatConversation,
|
|
||||||
) {
|
|
||||||
// 更新对话置顶
|
// 更新对话置顶
|
||||||
conversation.pinned = !conversation.pinned;
|
conversation.pinned = !conversation.pinned;
|
||||||
await updateChatConversationMy(conversation);
|
await updateChatConversationMy(conversation);
|
||||||
|
|
|
||||||
|
|
@ -307,9 +307,7 @@ async function doSendMessage(content: string) {
|
||||||
}
|
}
|
||||||
|
|
||||||
/** 真正执行【发送】消息操作 */
|
/** 真正执行【发送】消息操作 */
|
||||||
async function doSendMessageStream(
|
async function doSendMessageStream(userMessage: AiChatMessageApi.ChatMessage) {
|
||||||
userMessage: AiChatMessageApi.ChatMessage,
|
|
||||||
) {
|
|
||||||
// 创建 AbortController 实例,以便中止请求
|
// 创建 AbortController 实例,以便中止请求
|
||||||
conversationInAbortController.value = new AbortController();
|
conversationInAbortController.value = new AbortController();
|
||||||
// 标记对话进行中
|
// 标记对话进行中
|
||||||
|
|
|
||||||
|
|
@ -93,9 +93,7 @@ const [Grid, gridApi] = useVbenVxeGrid({
|
||||||
});
|
});
|
||||||
|
|
||||||
/** 修改是否发布 */
|
/** 修改是否发布 */
|
||||||
async function handleStatusChange(
|
async function handleStatusChange(row: AiKnowledgeSegmentApi.KnowledgeSegment) {
|
||||||
row: AiKnowledgeSegmentApi.KnowledgeSegment,
|
|
||||||
) {
|
|
||||||
try {
|
try {
|
||||||
// 修改状态的二次确认
|
// 修改状态的二次确认
|
||||||
const text = row.status ? '启用' : '禁用';
|
const text = row.status ? '启用' : '禁用';
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue