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 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'
6565import { loadSharedApi } from ' @/utils/dynamics-api/shared-api'
6666import permissionMap from ' @/permission'
6767
68-
6968const 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-
8978const permissionPrecise = computed (() => {
90- return permissionMap [' knowledge' ][apiType . value ]
79+ return permissionMap [' knowledge' ][props . apiType ]
9180})
9281
93-
9482const emit = defineEmits ([' refresh' ])
9583
9684const ProblemRef = ref ()
Original file line number Diff line number Diff line change 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 >
You can’t perform that action at this time.
0 commit comments