mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
feat: update folder retrieval to use source_id instead of id for consistency
This commit is contained in:
parent
dab5504ea1
commit
98c30463ff
|
|
@ -249,7 +249,7 @@ const toolTreeData = ref<any[]>([])
|
|||
const toolList = ref<any[]>([])
|
||||
|
||||
async function getToolFolder() {
|
||||
const res: any = await folder.asyncGetFolder(SourceTypeEnum.TOOL, {id: props.id}, apiType.value, loading)
|
||||
const res: any = await folder.asyncGetFolder(SourceTypeEnum.TOOL, {source_id: props.id}, apiType.value, loading)
|
||||
toolTreeData.value = res.data
|
||||
folder.setCurrentFolder(res.data?.[0] || {})
|
||||
}
|
||||
|
|
@ -271,7 +271,7 @@ const applicationTreeData = ref<any[]>([])
|
|||
const applicationList = ref<any[]>([])
|
||||
|
||||
function getApplicationFolder() {
|
||||
folder.asyncGetFolder(SourceTypeEnum.APPLICATION, {id: props.id}, apiType.value, loading).then((res: any) => {
|
||||
folder.asyncGetFolder(SourceTypeEnum.APPLICATION, {source_id: props.id}, apiType.value, loading).then((res: any) => {
|
||||
applicationTreeData.value = res.data
|
||||
folder.setCurrentFolder(res.data?.[0] || {})
|
||||
})
|
||||
|
|
|
|||
|
|
@ -210,7 +210,7 @@ const toolTreeData = ref<any[]>([])
|
|||
const toolList = ref<any[]>([])
|
||||
|
||||
async function getToolFolder() {
|
||||
const res: any = await folder.asyncGetFolder(SourceTypeEnum.TOOL, {id: props.id}, apiType.value, loading)
|
||||
const res: any = await folder.asyncGetFolder(SourceTypeEnum.TOOL, {source_id: props.id}, apiType.value, loading)
|
||||
toolTreeData.value = res.data
|
||||
folder.setCurrentFolder(res.data?.[0] || {})
|
||||
}
|
||||
|
|
|
|||
|
|
@ -230,7 +230,7 @@ const toolTreeData = ref<any[]>([])
|
|||
const toolList = ref<any[]>([])
|
||||
|
||||
async function getToolFolder() {
|
||||
const res: any = await folder.asyncGetFolder(SourceTypeEnum.TOOL, {id: props.id}, apiType.value, loading)
|
||||
const res: any = await folder.asyncGetFolder(SourceTypeEnum.TOOL, {source_id: props.id}, apiType.value, loading)
|
||||
toolTreeData.value = res.data
|
||||
folder.setCurrentFolder(res.data?.[0] || {})
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue