mirror of
https://github.com/langgenius/dify.git
synced 2026-05-06 02:18:08 +08:00
refactor: standardize pipeline template properties and improve related components
This commit is contained in:
@ -32,10 +32,10 @@ import type { IconInfo } from '@/models/datasets'
|
||||
|
||||
const NAME_SPACE = 'pipeline'
|
||||
|
||||
export const PipelineTemplateListQueryKeyPrefix = [NAME_SPACE, 'template', 'list']
|
||||
export const usePipelineTemplateList = (params: PipelineTemplateListParams) => {
|
||||
console.log('params', params)
|
||||
return useQuery<PipelineTemplateListResponse>({
|
||||
queryKey: [NAME_SPACE, 'template', 'list', params.type],
|
||||
queryKey: [...PipelineTemplateListQueryKeyPrefix, params.type],
|
||||
queryFn: () => {
|
||||
return get<PipelineTemplateListResponse>('/rag/pipeline/templates', { params })
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user