diff --git a/src/components/AppTextarea/index.vue b/src/components/AppTextarea/index.vue
index cd063a4..952e771 100644
--- a/src/components/AppTextarea/index.vue
+++ b/src/components/AppTextarea/index.vue
@@ -101,7 +101,6 @@ function stopMessage() {
diff --git a/src/views/role/index.vue b/src/views/role/index.vue
index 2cb39d3..f838918 100644
--- a/src/views/role/index.vue
+++ b/src/views/role/index.vue
@@ -426,27 +426,29 @@ onBeforeRouteLeave(() => {
>
-
-
-
+
-
-
-
diff --git a/src/views/textToImage/index.vue b/src/views/textToImage/index.vue
index 96d24f9..9f79e15 100644
--- a/src/views/textToImage/index.vue
+++ b/src/views/textToImage/index.vue
@@ -386,26 +386,28 @@ onBeforeRouteLeave(() => {
>
-
-
-
+
-
-
-
diff --git a/src/views/visualAnalysis/index.vue b/src/views/visualAnalysis/index.vue
index 2cc75c2..9b3d158 100644
--- a/src/views/visualAnalysis/index.vue
+++ b/src/views/visualAnalysis/index.vue
@@ -2,7 +2,6 @@
import { computed, nextTick, onMounted, onUnmounted, ref, watch } from 'vue'
import { onBeforeRouteLeave } from 'vue-router'
import { Button, Image, Spin, UploadDragger, message } from 'ant-design-vue'
-import type { UploadChangeParam, UploadProps } from 'ant-design-vue'
import { SvgIcon } from '@/components/SvgIcon'
import { AppTextarea } from '@/components/AppTextarea'
import { AppContainerBox } from '@/components/AppContainerBox'
@@ -141,6 +140,7 @@ async function handleSubMenuChange(index: number, item?: SubMenuItem) {
// item有的话说明是点击切换,需要重新获取历史消息,否则是不是点击切换调用,不需要获取历史记录
if (item) {
getHistoryMessage()
+ fileList.value = []
}
}
@@ -176,6 +176,7 @@ async function handleSend(value: string) {
return
}
sendMessage(conversationData.value.id, value)
+ fileList.value = []
}
}
@@ -260,7 +261,7 @@ async function sendMessage(conversationId: string, question: string): Promise {
>
-
-
-
-
-
-
-
-
-
-
- 拖拽图片到这里,或者点击添加
-
-
- 图片格式支持jpg、jpeg、png、gif、webp
-
-
-
-
-
- 已上传图片:
-
+
+
+
+
+
+
+
+
+
+
+ 拖拽图片到这里,或者点击添加
+
+
+ 图片格式支持jpg、jpeg、png、gif、webp
+
+
+
+
-
-
+