diff --git a/ui/src/views/document/index.vue b/ui/src/views/document/index.vue
index daa7407ef..d67936722 100644
--- a/ui/src/views/document/index.vue
+++ b/ui/src/views/document/index.vue
@@ -6,92 +6,94 @@
- {{ $t('views.document.uploadDocument') }}
-
- {{ $t('views.document.importDocument') }}
-
- {{ $t('views.document.importDocument') }}
-
- {{ $t('views.knowledge.setting.vectorization') }}
-
- {{ $t('views.document.generateQuestion.title') }}
-
- {{ $t('views.document.setting.migration') }}
-
-
-
-
+
+ {{ $t('views.document.uploadDocument') }}
-
-
-
- {{ $t('common.setting') }}
-
- {{ $t('views.document.syncDocument') }}
-
- {{ $t('views.document.syncDocument') }}
-
- {{ $t('common.delete') }}
-
-
-
-
+ {{ $t('views.document.importDocument') }}
+
+ {{ $t('views.document.importDocument') }}
+
+ {{ $t('views.knowledge.setting.vectorization') }}
+
+ {{ $t('views.document.generateQuestion.title') }}
+
+ {{ $t('views.document.setting.migration') }}
+
+
+
+
+
+
+
+
+ {{ $t('common.setting') }}
+
+ {{ $t('views.document.syncDocument') }}
+
+ {{ $t('views.document.syncDocument') }}
+
+ {{ $t('common.delete') }}
+
+
+
+
+
-
+
+ {{ row.name }}
-
+
{
}
})
+const isShared = computed(() => {
+ return folderId === 'share'
+})
+
const apiType = computed(() => {
if (route.path.includes('shared')) {
return 'systemShare'
@@ -852,7 +873,10 @@ function rowClickHandle(row: any, column: any) {
return
}
- router.push({ path: `/paragraph/${id}/${row.id}`, query: { type: apiType.value } })
+ router.push({
+ path: `/paragraph/${id}/${row.id}`,
+ query: { type: apiType.value, isShared: isShared.value ? 'true' : 'false' },
+ })
}
/*
diff --git a/ui/src/views/knowledge/component/KnowledgeListContainer.vue b/ui/src/views/knowledge/component/KnowledgeListContainer.vue
index f4e57f6ce..87e408508 100644
--- a/ui/src/views/knowledge/component/KnowledgeListContainer.vue
+++ b/ui/src/views/knowledge/component/KnowledgeListContainer.vue
@@ -354,6 +354,7 @@ onBeforeRouteLeave((to, from) => {
const emit = defineEmits(['refreshFolder'])
const apiType = computed(() => {
+ // 工作空间普通用户的共享是share。系统的共享是shared
if (route.path.includes('shared')) {
return 'systemShare'
} else if (route.path.includes('resource-management')) {
diff --git a/ui/src/views/paragraph/index.vue b/ui/src/views/paragraph/index.vue
index 34ba2236d..aadeb4d16 100644
--- a/ui/src/views/paragraph/index.vue
+++ b/ui/src/views/paragraph/index.vue
@@ -12,7 +12,7 @@
>)
-
@@ -168,12 +169,15 @@ import { t } from '@/locales'
const route = useRoute()
const {
params: { id, documentId },
- query: { type },
+ query: { type, isShared },
} = route as any
const apiType = computed(() => {
return type as 'systemShare' | 'workspace' | 'systemManage'
})
+const shareDisabled = computed(() => {
+ return isShared === 'true'
+})
const SelectDocumentDialogRef = ref()
const ParagraphDialogRef = ref()