File tree Expand file tree Collapse file tree 3 files changed +6
-15
lines changed
views/paragraph/component Expand file tree Collapse file tree 3 files changed +6
-15
lines changed Original file line number Diff line number Diff line change 37
37
<el-col :span =" 6" class =" border-l" style =" width : 300px " >
38
38
<!-- 关联问题 -->
39
39
<ProblemComponent
40
- v-if =" permissionPrecise.problem_read(id)"
40
+ v-if =" permissionPrecise.problem_read(id)"
41
41
:paragraphId =" paragraphId"
42
42
:docId =" document_id"
43
43
:knowledgeId =" id"
@@ -65,7 +65,6 @@ import ProblemComponent from '@/views/paragraph/component/ProblemComponent.vue'
65
65
import { loadSharedApi } from ' @/utils/dynamics-api/shared-api'
66
66
import permissionMap from ' @/permission'
67
67
68
-
69
68
const props = defineProps <{
70
69
title: String
71
70
apiType: ' systemShare' | ' workspace' | ' systemManage'
@@ -76,21 +75,10 @@ const {
76
75
params : { id, documentId },
77
76
} = route as any
78
77
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
-
89
78
const permissionPrecise = computed (() => {
90
- return permissionMap [' knowledge' ][apiType . value ]
79
+ return permissionMap [' knowledge' ][props . apiType ]
91
80
})
92
81
93
-
94
82
const emit = defineEmits ([' refresh' ])
95
83
96
84
const ProblemRef = ref ()
Original file line number Diff line number Diff line change 1
1
<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 =" " />
3
3
</template >
4
4
<script setup lang="ts"></script >
You can’t perform that action at this time.
0 commit comments