diff --git a/src/views/ai/chat/Conversation.vue b/src/views/ai/chat/Conversation.vue index 1c96c662..b5e32b40 100644 --- a/src/views/ai/chat/Conversation.vue +++ b/src/views/ai/chat/Conversation.vue @@ -42,8 +42,9 @@
- - + + + @@ -89,7 +90,7 @@ import {ChatConversationApi, ChatConversationVO} from '@/api/ai/chat/conversation' import {ref} from "vue"; import Role from "@/views/ai/chat/role/index.vue"; -import {Top} from "@element-plus/icons-vue"; +import {Bottom, Top} from "@element-plus/icons-vue"; const message = useMessage() // 消息弹窗 @@ -259,6 +260,16 @@ const deleteChatConversation = async (conversation: ChatConversationVO) => { } } +/** + * 对话置顶 + */ +const handlerTop = async (conversation: ChatConversationVO) => { + // 更新对话置顶 + conversation.pinned = !conversation.pinned + await ChatConversationApi.updateChatConversationMy(conversation) + // 刷新对话 + await getChatConversationList() +} // ============ 角色仓库