diff --git a/ui/src/api/image.ts b/ui/src/api/image.ts index e4800216d..6bfacd248 100644 --- a/ui/src/api/image.ts +++ b/ui/src/api/image.ts @@ -1,5 +1,5 @@ -import { Result } from '@/request/Result' -import { get, post, del, put } from '@/request/index' +import {Result} from '@/request/Result' +import {get, post, del, put} from '@/request/index' const prefix = '/oss/file' /** @@ -10,6 +10,10 @@ const postImage: (data: any) => Promise> = (data) => { return post(`${prefix}`, data) } +const getFile: (params: any) => Promise> = (params) => { + return get(`/oss/get_url` , params) +} export default { postImage, + getFile } diff --git a/ui/src/components/ai-chat/component/chat-input-operate/index.vue b/ui/src/components/ai-chat/component/chat-input-operate/index.vue index 31a4b3aa1..098f39189 100644 --- a/ui/src/components/ai-chat/component/chat-input-operate/index.vue +++ b/ui/src/components/ai-chat/component/chat-input-operate/index.vue @@ -42,7 +42,7 @@ @mouseleave.stop="mouseleave()" >
- +
{{ item && item?.name }}
@@ -53,7 +53,7 @@ v-if="showDelete === item.url" > - +
@@ -80,7 +80,7 @@ @mouseleave.stop="mouseleave()" >
- +
{{ item && item?.name }}
@@ -91,7 +91,7 @@ v-if="showDelete === item.url" > - +
@@ -115,7 +115,7 @@ @mouseleave.stop="mouseleave()" >
- +
{{ item && item?.name }}
@@ -126,7 +126,7 @@ v-if="showDelete === item.url" > - +
@@ -146,7 +146,7 @@ v-if="showDelete === item.url" > - + - +