diff --git a/web/src/components/FileUploadModal.vue b/web/src/components/FileUploadModal.vue
index 46bbeca1..8075b73b 100644
--- a/web/src/components/FileUploadModal.vue
+++ b/web/src/components/FileUploadModal.vue
@@ -29,7 +29,7 @@
-
+
分块参数 ({{ chunkParams.chunk_size }}/{{ chunkParams.chunk_overlap }})
@@ -112,7 +112,7 @@
>
点击或者把文件拖拽到这里上传
- 目前仅支持上传文本文件,如 .pdf, .txt, .md。且同名文件无法重复添加
+ 目前仅支持上传文本、图片文件,如 .pdf, .txt, .md, .docx, png, jpg等。
@@ -252,6 +252,11 @@ const isQaSplitSupported = computed(() => {
return type === 'chroma' || type === 'milvus';
});
+const isGraphBased = computed(() => {
+ const type = kbType.value?.toLowerCase();
+ return type === 'lightrag';
+});
+
// 计算属性:OCR选项
const enableOcrOptions = computed(() => [
{
diff --git a/web/src/components/KnowledgeGraphSection.vue b/web/src/components/KnowledgeGraphSection.vue
index 10ccce21..f0c0b2c3 100644
--- a/web/src/components/KnowledgeGraphSection.vue
+++ b/web/src/components/KnowledgeGraphSection.vue
@@ -36,7 +36,7 @@
查询参数
-
清空
-
+ -->
-
@@ -269,9 +256,7 @@
{{ agent.name }}
-
-
-
+
{{ agent.description }}
@@ -1247,15 +1232,6 @@ const toggleConf = () => {
border-color: var(--main-color);
}
- &.selected {
- border-color: var(--main-color);
- background: var(--main-10);
-
- .agent-card-indicator {
- color: var(--main-color);
- }
- }
-
.agent-card-header {
display: flex;
justify-content: space-between;
@@ -1281,13 +1257,6 @@ const toggleConf = () => {
flex-shrink: 0;
}
}
-
- .agent-card-indicator {
- font-size: 20px;
- color: var(--gray-400);
- transition: color 0.2s ease;
- flex-shrink: 0;
- }
}
.agent-card-description {
@@ -1300,6 +1269,22 @@ const toggleConf = () => {
overflow: hidden;
text-overflow: ellipsis;
}
+
+
+ &.selected {
+ border-color: var(--main-color);
+ background: var(--main-20);
+ // outline: 2px solid var(--main-color);
+
+ .agent-card-header .agent-card-title .agent-card-name {
+ color: var(--main-color);
+ }
+
+ .agent-card-description {
+ color: var(--gray-900);
+ }
+ }
+
}
}
}
diff --git a/web/src/views/GraphView.vue b/web/src/views/GraphView.vue
index edad39ed..5e45f90b 100644
--- a/web/src/views/GraphView.vue
+++ b/web/src/views/GraphView.vue
@@ -80,7 +80,7 @@
>
点击或者把文件拖拽到这里上传
- 目前仅支持上传 jsonl 文件。且同名文件无法重复添加。
+ 目前仅支持上传 jsonl 文件。