mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-02-05 01:55:05 +08:00
### What problem does this PR solve? Feat: Display mode at the begin node #10427 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
8
web/src/pages/agent/hooks/use-build-webhook-url.ts
Normal file
8
web/src/pages/agent/hooks/use-build-webhook-url.ts
Normal file
@ -0,0 +1,8 @@
|
||||
import { useParams } from 'umi';
|
||||
|
||||
export function useBuildWebhookUrl() {
|
||||
const { id } = useParams();
|
||||
|
||||
const text = `${location.protocol}//${location.host}/api/v1/webhook/${id}`;
|
||||
return text;
|
||||
}
|
||||
Reference in New Issue
Block a user