mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
fix: The data source Tree uses fetc_list_function (#4444)
This commit is contained in:
parent
d4bd49ba9d
commit
5bd29f622c
|
|
@ -102,6 +102,7 @@ import type Node from 'element-plus/es/components/tree/src/model/node'
|
|||
import { get, post, put, del } from '@/request/index'
|
||||
import { cloneDeep } from 'lodash'
|
||||
import { formItemContextKey } from 'element-plus'
|
||||
const get_extra = inject('get_extra') as any
|
||||
const elFormItem = inject(formItemContextKey, void 0)
|
||||
const request = {
|
||||
get,
|
||||
|
|
@ -168,7 +169,6 @@ function renderTemplate(template: string, data: any) {
|
|||
}
|
||||
|
||||
const loadNode = (node: Node, resolve: (nodeData: Tree[]) => void) => {
|
||||
const get_extra = inject('get_extra') as any
|
||||
request_call(request, {
|
||||
url: renderTemplate(
|
||||
'/workspace/${current_workspace_id}/knowledge/${current_knowledge_id}/datasource/tool/${current_tool_id}/' +
|
||||
|
|
|
|||
Loading…
Reference in New Issue