diff --git a/src/views/ai/chat/index.vue b/src/views/ai/chat/index.vue index 69e336f8..5ea8277b 100644 --- a/src/views/ai/chat/index.vue +++ b/src/views/ai/chat/index.vue @@ -50,7 +50,7 @@
-
+
角色仓库
@@ -145,6 +145,10 @@
+ + + +
@@ -192,6 +196,7 @@ import { ChatMessageApi, ChatMessageSendVO, ChatMessageVO } from '@/api/ai/chat/message' import { ChatConversationApi, ChatConversationVO } from '@/api/ai/chat/conversation' import ChatConversationUpdateForm from './components/ChatConversationUpdateForm.vue' +import Role from '@/views/ai/chat/role/index.vue' import { formatDate } from '@/utils/formatTime' import { useClipboard } from '@vueuse/core' // 转换 markdown @@ -218,6 +223,7 @@ const conversationList = ref([] as ChatConversationVO[]) // 初始化 copy 到粘贴板 const { copy } = useClipboard() +const drawer = ref(false) // 角色仓库抽屉 const searchName = ref('') // 查询的内容 const inputTimeout = ref() // 处理输入中回车的定时器 const conversationId = ref(-1) // 选中的对话编号 @@ -537,6 +543,11 @@ const handleConversationClick = async (id: number) => { await messageList() } +// 角色仓库 +const handleRoleRepository = async () => { + drawer.value = !drawer.value +} + /** 初始化 **/ onMounted(async () => { // 设置当前对话 @@ -669,6 +680,7 @@ onMounted(async () => { color: #606266; padding: 0; margin: 0; + cursor: pointer; > span { margin-left: 5px;