fix: bugs

This commit is contained in:
wangdan-fit2cloud 2025-06-25 19:58:48 +08:00
parent 4c66fa998f
commit c00cf22900
2 changed files with 16 additions and 2 deletions

View File

@ -232,4 +232,9 @@ function refreshFolder() {
height: calc(100vh - 210px); height: calc(100vh - 210px);
} }
} }
:deep(.overflow-inherit_node__children) {
.el-tree-node__children {
overflow: inherit !important;
}
}
</style> </style>

View File

@ -1,6 +1,6 @@
<template> <template>
<div class="breadcrumb ml-4 mt-4 mb-12 flex"> <div class="breadcrumb ml-4 mt-4 mb-12 flex">
<back-button to="-1" class="mt-4"></back-button> <back-button :to="toBackPath" class="mt-4"></back-button>
<div class="flex align-center"> <div class="flex align-center">
<el-avatar <el-avatar
v-if="isApplication && isAppIcon(current?.icon)" v-if="isApplication && isAppIcon(current?.icon)"
@ -29,7 +29,6 @@ import { ref, onMounted, computed } from 'vue'
import { onBeforeRouteLeave, useRouter, useRoute } from 'vue-router' import { onBeforeRouteLeave, useRouter, useRoute } from 'vue-router'
import { isAppIcon } from '@/utils/common' import { isAppIcon } from '@/utils/common'
import { loadSharedApi } from '@/utils/dynamics-api/shared-api' import { loadSharedApi } from '@/utils/dynamics-api/shared-api'
import useStore from '@/stores' import useStore from '@/stores'
const { common, application } = useStore() const { common, application } = useStore()
const route = useRoute() const route = useRoute()
@ -64,6 +63,16 @@ const isKnowledge = computed(() => {
return activeMenu.includes('knowledge') return activeMenu.includes('knowledge')
}) })
const toBackPath = computed(() => {
if (route.path.includes('shared')) {
return '/system/shared' + activeMenu
} else if (route.path.includes('resource-management')) {
return '/system/resource-management' + activeMenu
} else {
return activeMenu
}
})
function getKnowledgeDetail() { function getKnowledgeDetail() {
loading.value = true loading.value = true
loadSharedApi({ type: 'knowledge', systemType: apiType.value }) loadSharedApi({ type: 'knowledge', systemType: apiType.value })