fix: paragraph problem error

This commit is contained in:
wangdan-fit2cloud 2025-08-05 17:31:49 +08:00
parent 44645734f5
commit 8222cf42fa
3 changed files with 6 additions and 15 deletions

View File

@ -0,0 +1,3 @@
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M4.107 15.015C4.00114 14.9546 3.91311 14.8673 3.85183 14.7619C3.79055 14.6566 3.75818 14.5369 3.758 14.415V13.037H3.07C2.521 13.037 1.99449 12.8189 1.60629 12.4307C1.21809 12.0425 1 11.516 1 10.967V4.06699C1.00053 3.51834 1.21885 2.99234 1.607 2.60457C1.99514 2.21681 2.52135 1.99899 3.07 1.99899H6.018C6.29414 1.99899 6.518 2.2228 6.518 2.49894C6.518 2.62441 6.518 2.75416 6.518 2.87707C6.518 3.15322 6.29414 3.37699 6.018 3.37699H3.07C2.88708 3.37726 2.71173 3.45004 2.58239 3.57938C2.45305 3.70872 2.38026 3.88407 2.38 4.06699V10.967C2.38 11.0575 2.39786 11.1471 2.43256 11.2307C2.46726 11.3143 2.51812 11.3903 2.58222 11.4542C2.64632 11.5181 2.7224 11.5687 2.8061 11.6032C2.8898 11.6377 2.97948 11.6553 3.07 11.655H4.448C4.63092 11.6553 4.80627 11.728 4.93561 11.8574C5.06495 11.9867 5.13774 12.1621 5.138 12.345V13.197L7.538 11.755C7.64492 11.6897 7.76774 11.6551 7.893 11.655H12.031C12.1215 11.6551 12.2111 11.6374 12.2947 11.6029C12.3784 11.5684 12.4544 11.5178 12.5185 11.4539C12.5826 11.39 12.6334 11.3141 12.6682 11.2306C12.7256 11.0926 12.8421 10.967 12.9916 10.967C13.1928 10.967 13.4059 10.967 13.601 10.967C13.8772 10.967 14.107 11.194 14.0409 11.4622C13.9513 11.8258 13.7639 12.1615 13.4947 12.4307C13.1065 12.8189 12.58 13.037 12.031 13.037H8.085L4.8 15.007C4.69244 15.0716 4.56948 15.1062 4.444 15.107C4.3256 15.106 4.20948 15.0743 4.107 15.015ZM13 8.89999C12.6811 8.89789 12.3716 8.79148 12.1188 8.59702C11.866 8.40255 11.6838 8.13071 11.6 7.82299L11.345 6.90199L10.345 8.10199C10.1388 8.3514 9.88023 8.55237 9.58764 8.69063C9.39359 8.78232 8.89452 8.84494 8.48596 8.877C8.2101 8.89864 7.98533 8.67717 7.98533 8.40046C7.98533 8.26753 7.98533 8.14397 7.98533 8.02026C7.98533 7.74479 8.20817 7.51836 8.48317 7.50248C8.7136 7.48917 8.94642 7.46913 9.00242 7.44263C9.11199 7.39078 9.20881 7.31546 9.286 7.22199L10.895 5.29199L10.384 3.45299C10.3812 3.43529 10.3726 3.41901 10.3596 3.40671C10.3466 3.3944 10.3298 3.38677 10.312 3.38499H9.18933C8.91319 3.38499 8.68933 3.16103 8.68933 2.88489C8.68933 2.74271 8.68933 2.63644 8.68933 2.50703C8.68933 2.23089 8.91319 2.00699 9.18933 2.00699H10.312C10.631 2.00877 10.9406 2.11505 11.1935 2.30956C11.4464 2.50408 11.6285 2.77611 11.712 3.08399L11.968 4.00299L12.968 2.80299C13.1742 2.55358 13.4328 2.35261 13.7254 2.21436C13.9194 2.12266 14.4185 2.06004 14.827 2.02799C15.1029 2.00634 15.3276 2.2278 15.329 2.5045C15.3296 2.63644 15.3303 2.74384 15.3302 2.88844C15.3299 3.16159 15.1084 3.38493 14.8357 3.40069C14.6035 3.41411 14.3673 3.43431 14.3109 3.46101C14.2014 3.51282 14.1045 3.5879 14.027 3.68099L12.416 5.61199L12.928 7.44999C12.931 7.4674 12.9397 7.48332 12.9528 7.49526C12.9658 7.5072 12.9824 7.51449 13 7.51599H14.1207C14.3968 7.51599 14.6207 7.73985 14.6207 8.01599C14.6207 8.14057 14.6207 8.26443 14.6207 8.39715C14.6207 8.67282 14.3976 8.89654 14.1219 8.89722L13 8.89999Z" fill="#FF8800"/>
</svg>

After

Width:  |  Height:  |  Size: 2.9 KiB

View File

@ -37,7 +37,7 @@
<el-col :span="6" class="border-l" style="width: 300px">
<!-- 关联问题 -->
<ProblemComponent
v-if="permissionPrecise.problem_read(id)"
v-if="permissionPrecise.problem_read(id)"
:paragraphId="paragraphId"
:docId="document_id"
:knowledgeId="id"
@ -65,7 +65,6 @@ import ProblemComponent from '@/views/paragraph/component/ProblemComponent.vue'
import { loadSharedApi } from '@/utils/dynamics-api/shared-api'
import permissionMap from '@/permission'
const props = defineProps<{
title: String
apiType: 'systemShare' | 'workspace' | 'systemManage'
@ -76,21 +75,10 @@ const {
params: { id, documentId },
} = route as any
const apiType = computed(() => {
if (route.path.includes('shared')) {
return 'systemShare'
} else if (route.query.from == 'systemManage') {
return 'systemManage'
} else {
return 'workspace'
}
})
const permissionPrecise = computed(() => {
return permissionMap['knowledge'][apiType.value]
return permissionMap['knowledge'][props.apiType]
})
const emit = defineEmits(['refresh'])
const ProblemRef = ref()

View File

@ -1,4 +1,4 @@
<template>
<img src="@/assets/workflow/icon_globe_color.svg" style="width: 18px" alt="" />
<img src="@/assets/workflow/icon_chat_color.svg" style="width: 18px" alt="" />
</template>
<script setup lang="ts"></script>