-
-
-
-
-
-
-
-
-
-
-
- {{ applicationForm?.name || $t('views.application.form.appName.label') }}
-
-
@@ -768,7 +733,8 @@ onMounted(() => {
}
.scrollbar-height {
- height: calc(var(--app-main-height) - 166px);
+ padding-top: 16px;
+ height: calc(var(--app-main-height) - 96px);
}
}
diff --git a/ui/src/views/application/component/AddKnowledgeDialog.vue b/ui/src/views/application/component/AddKnowledgeDialog.vue
index fe3e74614..44feb35b7 100644
--- a/ui/src/views/application/component/AddKnowledgeDialog.vue
+++ b/ui/src/views/application/component/AddKnowledgeDialog.vue
@@ -1,37 +1,38 @@
-
- {{ $t('views.application.form.dialog.addDataset') }}
-
-
-
- {{ $t('common.refresh') }}
-
-
+
+
+ {{ $t('views.application.dialog.addKnowledge') }}
+
+
+ {{ $t('views.application.dialog.addKnowledgePlaceholder') }}
+
+
+
+
+
+
+
+
+
-
-
-
- {{ $t('views.application.form.dialog.addDatasetPlaceholder') }}
-
-
@@ -49,8 +50,8 @@
- {{ $t('views.application.form.dialog.selected') }} {{ checkList.length }}
- {{ $t('views.application.form.dialog.countDataset') }}
+ {{ $t('views.application.dialog.selected') }} {{ checkList.length }}
+ {{ $t('views.application.dialog.countDataset') }}
{{ $t('common.clear') }}
@@ -73,9 +74,9 @@ import { computed, ref, watch } from 'vue'
const props = defineProps({
data: {
type: Array,
- default: () => []
+ default: () => [],
},
- loading: Boolean
+ loading: Boolean,
})
const emit = defineEmits(['addData', 'refresh'])
@@ -111,7 +112,7 @@ watch(searchValue, (val) => {
function changeHandle() {
if (checkList.value.length > 0) {
currentEmbedding.value = props.data.filter(
- (v) => v.id === checkList.value[0]
+ (v) => v.id === checkList.value[0],
)[0].embedding_mode_id
} else if (checkList.value.length === 0) {
currentEmbedding.value = ''
@@ -127,7 +128,7 @@ const open = (checked: any) => {
checkList.value = checked
if (checkList.value.length > 0) {
currentEmbedding.value = props.data.filter(
- (v) => v.id === checkList.value[0]
+ (v) => v.id === checkList.value[0],
)[0].embedding_mode_id
}
@@ -145,20 +146,22 @@ const refresh = () => {
defineExpose({ open })