diff --git a/src/assets/icons/light.svg b/src/assets/icons/light.svg
index dba6a35..7205c7d 100644
--- a/src/assets/icons/light.svg
+++ b/src/assets/icons/light.svg
@@ -1,3 +1,3 @@
diff --git a/src/assets/icons/plus.svg b/src/assets/icons/plus.svg
new file mode 100644
index 0000000..7e4b3a8
--- /dev/null
+++ b/src/assets/icons/plus.svg
@@ -0,0 +1,3 @@
+
diff --git a/src/views/home/agent/components/Agent.vue b/src/views/home/agent/components/Agent.vue
index 998024c..0940e46 100644
--- a/src/views/home/agent/components/Agent.vue
+++ b/src/views/home/agent/components/Agent.vue
@@ -109,6 +109,7 @@
handleSendMessage({
text: initialData.text,
images: initialData.images,
+ useReport:initialData.useReport,
tempImages: initialData.tempImages
})
// 更新 configParams
@@ -123,12 +124,14 @@
text: string
images: Array<{ url: string; name: string }>
tempImages: any[]
+ useReport: boolean
},
skipUserMessage = false
) => {
isPaused.value = false
isGenerating.value = true
params.message = message.text
+ params.useReport = message.useReport
params.imageUrlList = message.images || []
// 如果不是重新生成模式,则添加用户消息到列表
diff --git a/src/views/home/components/Input.vue b/src/views/home/components/Input.vue
index 4dc8e35..a779384 100644
--- a/src/views/home/components/Input.vue
+++ b/src/views/home/components/Input.vue
@@ -35,8 +35,36 @@
-
-

+
+
+
+
+
+
+
+
+

+
Upload files
+
+
+
+
+ Trending report
+
+
+
+
+
+
+
-
+
{{ $t('Input.trendingReport') }}
@@ -656,6 +684,7 @@
const payload = {
text: inputValue.value.trim(),
images: imageUrlList,
+ useReport: reportTags.value.length > 0,
tempImages: uploadedImages.value
}
emits('send', payload)
@@ -941,6 +970,15 @@
.left {
column-gap: 2rem;
}
+ .agent-operate {
+ width: 3.2rem;
+ height: 3.2rem;
+ cursor: pointer;
+ border-radius: 50%;
+ &:hover {
+ background-color: #f0f0f0;
+ }
+ }
.attach {
width: 4rem;
height: 4rem;
@@ -1320,4 +1358,53 @@
height: 1.2rem;
}
}
+
+ .agent-plus-popover {
+ display: flex;
+ justify-content: flex-start;
+ background: transparent !important;
+ box-shadow: none !important;
+ border: none !important;
+ padding: 0 !important;
+ margin-bottom: -1rem;
+ pointer-events: none;
+ .el-popper__arrow:before {
+ display: none;
+ }
+ .agent-modal {
+ // width: 14.6rem;
+ // height: 8.5rem;
+ row-gap: 1.2rem;
+ font-family: 'Medium';
+ font-weight: 500;
+ font-size: 1.3rem;
+ color: #222;
+ background-color: #fff;
+ border: 1px solid #d9d9d9;
+ box-shadow: 0px 6.53px 32.63px 0px #0000000d;
+ border-radius: 1rem;
+ padding: 1.2rem 1.4rem;
+ .c-svg {
+ width: initial;
+ width: 1rem;
+ height: 1.3rem;
+ }
+ .file,
+ .report {
+ line-height: 1.8rem;
+ column-gap: 1rem;
+ cursor: pointer;
+ }
+ .file {
+ .file-icon {
+ width: 1.1rem;
+ height: 1.3rem;
+ }
+ }
+ .gap {
+ height: 0.05rem;
+ background-color: #d4d4d4;
+ }
+ }
+ }