mirror of
https://github.com/langgenius/dify.git
synced 2026-05-06 02:18:08 +08:00
chore: debug info use query
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
import type { InstalledPluginListResponse } from '@/app/components/plugins/types'
|
||||
import type { DebugInfo as DebugInfoTypes, InstalledPluginListResponse } from '@/app/components/plugins/types'
|
||||
import { get } from './base'
|
||||
import {
|
||||
useQueryClient,
|
||||
@ -27,3 +27,10 @@ export const useInvalidateInstalledPluginList = () => {
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
export const useDebugKey = () => {
|
||||
return useQuery({
|
||||
queryKey: [NAME_SPACE, 'debugKey'],
|
||||
queryFn: () => get<DebugInfoTypes>('/workspaces/current/plugin/debugging-key'),
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user