Skip to content

Commit 8222cf4

Browse files
fix: paragraph problem error
1 parent 4464573 commit 8222cf4

File tree

3 files changed

+6
-15
lines changed

3 files changed

+6
-15
lines changed
Lines changed: 3 additions & 0 deletions
Loading

ui/src/views/paragraph/component/ParagraphDialog.vue

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
<el-col :span="6" class="border-l" style="width: 300px">
3838
<!-- 关联问题 -->
3939
<ProblemComponent
40-
v-if="permissionPrecise.problem_read(id)"
40+
v-if="permissionPrecise.problem_read(id)"
4141
:paragraphId="paragraphId"
4242
:docId="document_id"
4343
:knowledgeId="id"
@@ -65,7 +65,6 @@ import ProblemComponent from '@/views/paragraph/component/ProblemComponent.vue'
6565
import { loadSharedApi } from '@/utils/dynamics-api/shared-api'
6666
import permissionMap from '@/permission'
6767
68-
6968
const props = defineProps<{
7069
title: String
7170
apiType: 'systemShare' | 'workspace' | 'systemManage'
@@ -76,21 +75,10 @@ const {
7675
params: { id, documentId },
7776
} = route as any
7877
79-
const apiType = computed(() => {
80-
if (route.path.includes('shared')) {
81-
return 'systemShare'
82-
} else if (route.query.from == 'systemManage') {
83-
return 'systemManage'
84-
} else {
85-
return 'workspace'
86-
}
87-
})
88-
8978
const permissionPrecise = computed(() => {
90-
return permissionMap['knowledge'][apiType.value]
79+
return permissionMap['knowledge'][props.apiType]
9180
})
9281
93-
9482
const emit = defineEmits(['refresh'])
9583
9684
const ProblemRef = ref()

ui/src/workflow/icons/global-icon.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<template>
2-
<img src="@/assets/workflow/icon_globe_color.svg" style="width: 18px" alt="" />
2+
<img src="@/assets/workflow/icon_chat_color.svg" style="width: 18px" alt="" />
33
</template>
44
<script setup lang="ts"></script>

0 commit comments

Comments
 (0)