diff --git a/ui/src/layout/layout-template/MainLayout.vue b/ui/src/layout/layout-template/MainLayout.vue index b82844384..81a56e112 100644 --- a/ui/src/layout/layout-template/MainLayout.vue +++ b/ui/src/layout/layout-template/MainLayout.vue @@ -40,7 +40,7 @@ const isShared = computed(() => { folderId === 'shared' || from === 'systemShare' || from === 'systemManage' || - folderId === 'resource-management' + route.path.includes('resource-management') ) }) const { theme, user } = useStore() diff --git a/ui/src/layout/layout-template/SimpleLayout.vue b/ui/src/layout/layout-template/SimpleLayout.vue index 3458fab32..2f99d11cd 100644 --- a/ui/src/layout/layout-template/SimpleLayout.vue +++ b/ui/src/layout/layout-template/SimpleLayout.vue @@ -19,7 +19,7 @@ const isShared = computed(() => { folderId === 'shared' || from === 'systemShare' || from === 'systemManage' || - folderId === 'resource-management' + route.path.includes('resource-management') ) }) diff --git a/ui/src/views/knowledge/component/ParagraphPreview.vue b/ui/src/views/knowledge/component/ParagraphPreview.vue index b0d2123ca..b2854eb84 100644 --- a/ui/src/views/knowledge/component/ParagraphPreview.vue +++ b/ui/src/views/knowledge/component/ParagraphPreview.vue @@ -9,13 +9,15 @@
- {{ item.content.length }} {{ $t('views.paragraph.title') }} + {{ item.content.length }} {{ $t('views.paragraph.title') }}
- +
@@ -30,10 +32,10 @@ import ParagraphList from './ParagraphList.vue' defineProps({ data: { type: Array, - default: () => [] + default: () => [], }, isConnect: Boolean, - knowledgeId: String + knowledgeId: String, }) const activeName = ref(0) @@ -66,6 +68,6 @@ const activeName = ref(0) } } .paragraph-list { - height: calc(var(--create-dataset-height) - 101px); + height: calc(100vh - 319px); }