diff --git a/apps/web-antd/public/static/copy.svg b/apps/web-antd/public/static/copy.svg deleted file mode 100644 index f51f8d81c..000000000 --- a/apps/web-antd/public/static/copy.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/apps/web-antd/public/static/delete.svg b/apps/web-antd/public/static/delete.svg deleted file mode 100644 index d2ee18eda..000000000 --- a/apps/web-antd/public/static/delete.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/apps/web-antd/public/static/dall2.jpg b/apps/web-antd/public/static/imgs/ai/dall2.jpg similarity index 100% rename from apps/web-antd/public/static/dall2.jpg rename to apps/web-antd/public/static/imgs/ai/dall2.jpg diff --git a/apps/web-antd/public/static/dall3.jpg b/apps/web-antd/public/static/imgs/ai/dall3.jpg similarity index 100% rename from apps/web-antd/public/static/dall3.jpg rename to apps/web-antd/public/static/imgs/ai/dall3.jpg diff --git a/apps/web-antd/public/static/qingxi.jpg b/apps/web-antd/public/static/imgs/ai/qingxi.jpg similarity index 100% rename from apps/web-antd/public/static/qingxi.jpg rename to apps/web-antd/public/static/imgs/ai/qingxi.jpg diff --git a/apps/web-antd/public/static/ziran.jpg b/apps/web-antd/public/static/imgs/ai/ziran.jpg similarity index 100% rename from apps/web-antd/public/static/ziran.jpg rename to apps/web-antd/public/static/imgs/ai/ziran.jpg diff --git a/apps/web-antd/src/utils/constants.ts b/apps/web-antd/src/utils/constants.ts index a3eaf3233..44ac6751c 100644 --- a/apps/web-antd/src/utils/constants.ts +++ b/apps/web-antd/src/utils/constants.ts @@ -365,12 +365,12 @@ export const Dall3Models: ImageModelVO[] = [ { key: 'dall-e-3', name: 'DALL·E 3', - image: `/static/dall2.jpg`, + image: `/static/imgs/ai/dall2.jpg`, }, { key: 'dall-e-2', name: 'DALL·E 2', - image: `/static/dall3.jpg`, + image: `/static/imgs/ai/dall3.jpg`, }, ]; @@ -378,12 +378,12 @@ export const Dall3StyleList: ImageModelVO[] = [ { key: 'vivid', name: '清晰', - image: `/static/qingxi.jpg`, + image: `/static/imgs/ai/qingxi.jpg`, }, { key: 'natural', name: '自然', - image: `/static/ziran.jpg`, + image: `/static/imgs/ai/ziran.jpg`, }, ]; export const MidjourneyModels: ImageModelVO[] = [ diff --git a/apps/web-antd/src/views/ai/chat/index/components/conversation/ConversationList.vue b/apps/web-antd/src/views/ai/chat/index/components/conversation/ConversationList.vue index a2f1a82da..1cab5b683 100644 --- a/apps/web-antd/src/views/ai/chat/index/components/conversation/ConversationList.vue +++ b/apps/web-antd/src/views/ai/chat/index/components/conversation/ConversationList.vue @@ -318,7 +318,7 @@ onMounted(async () => { type="primary" @click="createConversation" > - + 新建对话 @@ -330,7 +330,7 @@ onMounted(async () => { @keyup="searchConversation" > - + @@ -389,28 +389,28 @@ onMounted(async () => { type="link" @click.stop="handleTop(conversation)" > - - + + icon="lucide:arrow-down" + /> - + - + @@ -430,14 +430,14 @@ onMounted(async () => { class="flex cursor-pointer items-center text-[#606266]" @click="handleRoleRepository" > - + 角色仓库 - + 清空未置顶对话 diff --git a/apps/web-antd/src/views/ai/chat/index/components/message/MessageKnowledge.vue b/apps/web-antd/src/views/ai/chat/index/components/message/MessageKnowledge.vue index f7ffcd184..274a74200 100644 --- a/apps/web-antd/src/views/ai/chat/index/components/message/MessageKnowledge.vue +++ b/apps/web-antd/src/views/ai/chat/index/components/message/MessageKnowledge.vue @@ -60,7 +60,7 @@ function handleClick(doc: any) { class="mt-[10px] rounded-[8px] bg-[#f5f5f5] p-[10px]" > - 知识引用 + 知识引用 userStore.userInfo?.avatar || preferences.app.defaultAvatar, ); -const roleAvatar = computed( - () => props.conversation.roleAvatar ?? '/static/gpt.svg', -); const { list } = toRefs(props); // 定义 emits @@ -121,7 +119,11 @@ onMounted(async () => { - + + @@ -142,7 +144,7 @@ onMounted(async () => { type="text" @click="copyContent(item.content)" > - + { type="text" @click="onDelete(item.id)" > - + @@ -178,28 +180,28 @@ onMounted(async () => { type="text" @click="copyContent(item.content)" > - + - + - + - + @@ -214,7 +216,7 @@ onMounted(async () => { @click="handleGoBottom" > - + diff --git a/apps/web-antd/src/views/ai/chat/index/components/role/RoleCategoryList.vue b/apps/web-antd/src/views/ai/chat/index/components/role/RoleCategoryList.vue index 3c9e97749..748fa13b4 100644 --- a/apps/web-antd/src/views/ai/chat/index/components/role/RoleCategoryList.vue +++ b/apps/web-antd/src/views/ai/chat/index/components/role/RoleCategoryList.vue @@ -27,7 +27,7 @@ async function handleCategoryClick(category: string) { diff --git a/apps/web-antd/src/views/ai/chat/index/components/role/RoleList.vue b/apps/web-antd/src/views/ai/chat/index/components/role/RoleList.vue index d8051861c..39ebed850 100644 --- a/apps/web-antd/src/views/ai/chat/index/components/role/RoleList.vue +++ b/apps/web-antd/src/views/ai/chat/index/components/role/RoleList.vue @@ -86,19 +86,19 @@ async function handleTabsScroll() { - + - + 编辑 - + 编辑 diff --git a/apps/web-antd/src/views/ai/chat/index/components/role/RoleRepository.vue b/apps/web-antd/src/views/ai/chat/index/components/role/RoleRepository.vue index 8ed2d26f0..d43eedea1 100644 --- a/apps/web-antd/src/views/ai/chat/index/components/role/RoleRepository.vue +++ b/apps/web-antd/src/views/ai/chat/index/components/role/RoleRepository.vue @@ -8,7 +8,7 @@ import { useRouter } from 'vue-router'; import { useVbenDrawer, useVbenModal } from '@vben/common-ui'; import { IconifyIcon } from '@vben/icons'; -import { Button, Input, Layout, TabPane, Tabs } from 'ant-design-vue'; +import { Button, Input, Layout, Tabs } from 'ant-design-vue'; import { createChatConversationMy } from '#/api/ai/chat/conversation'; import { deleteMy, getCategoryList, getMyPage } from '#/api/ai/model/chatRole'; @@ -194,7 +194,7 @@ onMounted(async () => { @click="handlerAddRole" class="ml-[20px]" > - + 添加角色 @@ -205,7 +205,7 @@ onMounted(async () => { class="relative h-full p-4" @tab-click="handleTabsClick" > - { @on-page="handlerCardPage('my')" class="mt-[20px]" /> - + - { class="mt-[20px]" loading /> - + diff --git a/apps/web-antd/src/views/ai/chat/index/index.vue b/apps/web-antd/src/views/ai/chat/index/index.vue index 7f9b535e9..4feb570e3 100644 --- a/apps/web-antd/src/views/ai/chat/index/index.vue +++ b/apps/web-antd/src/views/ai/chat/index/index.vue @@ -521,32 +521,21 @@ onMounted(async () => { - + - - + + - - + + - - + + diff --git a/apps/web-antd/src/views/ai/chat/manager/index.vue b/apps/web-antd/src/views/ai/chat/manager/index.vue index 95137b1b5..8eb294dd3 100644 --- a/apps/web-antd/src/views/ai/chat/manager/index.vue +++ b/apps/web-antd/src/views/ai/chat/manager/index.vue @@ -3,7 +3,7 @@ import { ref } from 'vue'; import { DocAlert, Page } from '@vben/common-ui'; -import { Card, TabPane, Tabs } from 'ant-design-vue'; +import { Card, Tabs } from 'ant-design-vue'; import ChatConversationList from './modules/ChatConversationList.vue'; import ChatMessageList from './modules/ChatMessageList.vue'; @@ -18,12 +18,12 @@ const activeTabName = ref('conversation'); - + - - + + - + diff --git a/apps/web-antd/src/views/ai/chat/manager/modules/ChatConversationList.vue b/apps/web-antd/src/views/ai/chat/manager/modules/ChatConversationList.vue index 7b23f7912..15837cdca 100644 --- a/apps/web-antd/src/views/ai/chat/manager/modules/ChatConversationList.vue +++ b/apps/web-antd/src/views/ai/chat/manager/modules/ChatConversationList.vue @@ -87,9 +87,10 @@ onMounted(async () => { - {{ - userList.find((item) => item.id === row.userId)?.nickname - }} + + {{ userList.find((item) => item.id === row.userId)?.nickname }} + + 系统 { type="text" @click="handleButtonClick('download', detail)" > - + - + - + - + diff --git a/apps/web-antd/src/views/ai/image/manager/index.vue b/apps/web-antd/src/views/ai/image/manager/index.vue index 15e9190ca..b5b907cc1 100644 --- a/apps/web-antd/src/views/ai/image/manager/index.vue +++ b/apps/web-antd/src/views/ai/image/manager/index.vue @@ -92,7 +92,9 @@ onMounted(async () => { - + + + @@ -101,9 +103,9 @@ onMounted(async () => { - {{ - userList.find((item) => item.id === row.userId)?.nickname - }} + + {{ userList.find((item) => item.id === row.userId)?.nickname }} + { - + { @keyup.enter="handleQuery" /> { > - - {{ - file.name - }} + + + {{ file.name }} + diff --git a/apps/web-antd/src/views/ai/knowledge/document/form/SplitStep.vue b/apps/web-antd/src/views/ai/knowledge/document/form/SplitStep.vue index 438a9deb6..4a82e9cf5 100644 --- a/apps/web-antd/src/views/ai/knowledge/document/form/SplitStep.vue +++ b/apps/web-antd/src/views/ai/knowledge/document/form/SplitStep.vue @@ -176,7 +176,10 @@ onMounted(async () => { 系统会自动将文档内容分割成多个段落,您可以根据需要调整分段方式和内容。 - + @@ -206,7 +209,7 @@ onMounted(async () => { trigger="click" > - + {{ currentFile?.name || '请选择文件' }} { > ({{ currentFile.segments.length }}个分片) - + @@ -244,7 +247,7 @@ onMounted(async () => { v-if="splitLoading" class="flex items-center justify-center py-[20px]" > - + 正在加载分段内容... { class="flex items-center justify-between rounded-sm border-l-4 border-l-[#409eff] px-[12px] py-[4px] shadow-sm transition-all duration-300 hover:bg-[#ecf5ff]" > - + {{ file.name }} @@ -243,7 +246,7 @@ onMounted(() => { @click="removeFile(index)" class="ml-2" > - + diff --git a/apps/web-antd/src/views/ai/knowledge/knowledge/index.vue b/apps/web-antd/src/views/ai/knowledge/knowledge/index.vue index 0e3f77e4b..6ea2bf628 100644 --- a/apps/web-antd/src/views/ai/knowledge/knowledge/index.vue +++ b/apps/web-antd/src/views/ai/knowledge/knowledge/index.vue @@ -104,7 +104,9 @@ const [Grid, gridApi] = useVbenVxeGrid({ - + + + diff --git a/apps/web-antd/src/views/ai/knowledge/knowledge/retrieval/index.vue b/apps/web-antd/src/views/ai/knowledge/knowledge/retrieval/index.vue index cdfea5064..1211cc603 100644 --- a/apps/web-antd/src/views/ai/knowledge/knowledge/retrieval/index.vue +++ b/apps/web-antd/src/views/ai/knowledge/knowledge/retrieval/index.vue @@ -3,6 +3,7 @@ import { onMounted, reactive, ref } from 'vue'; import { useRoute, useRouter } from 'vue-router'; import { Page } from '@vben/common-ui'; +import { IconifyIcon } from '@vben/icons'; import { Button, @@ -183,14 +184,18 @@ onMounted(() => { - + {{ segment.documentName || '未知文档' }} {{ segment.expanded ? '收起' : '展开' }} diff --git a/apps/web-antd/src/views/ai/mindmap/index/modules/Right.vue b/apps/web-antd/src/views/ai/mindmap/index/modules/Right.vue index fb5043dcd..5cc3466c2 100644 --- a/apps/web-antd/src/views/ai/mindmap/index/modules/Right.vue +++ b/apps/web-antd/src/views/ai/mindmap/index/modules/Right.vue @@ -1,6 +1,7 @@