mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
feat: update apiType logic to include shared route handling in tool list request
This commit is contained in:
parent
d4d88ac2be
commit
98121add0b
|
|
@ -132,7 +132,9 @@ const props = defineProps({
|
|||
const emit = defineEmits(['clickNodes', 'onmousedown'])
|
||||
|
||||
const apiType = computed(() => {
|
||||
if (route.path.includes('resource-management')) {
|
||||
if (route.path.includes('shared')) {
|
||||
return 'systemShare'
|
||||
} else if (route.path.includes('resource-management')) {
|
||||
return 'systemManage'
|
||||
} else {
|
||||
return 'workspace'
|
||||
|
|
@ -217,7 +219,7 @@ async function getToolList() {
|
|||
const res = await loadSharedApi({
|
||||
type: 'tool',
|
||||
isShared: folder.currentFolder?.id === 'share',
|
||||
systemType: 'workspace',
|
||||
systemType: apiType.value,
|
||||
}).getToolList({
|
||||
folder_id: folder.currentFolder?.id || user.getWorkspaceId(),
|
||||
tool_type: activeName.value == 'DATA_SOURCE_TOOL' ? 'DATA_SOURCE' : 'CUSTOM',
|
||||
|
|
|
|||
Loading…
Reference in New Issue