mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-31 17:15:32 +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)
9 lines
199 B
TypeScript
9 lines
199 B
TypeScript
import { useParams } from 'umi';
|
|
|
|
export function useBuildWebhookUrl() {
|
|
const { id } = useParams();
|
|
|
|
const text = `${location.protocol}//${location.host}/api/v1/webhook/${id}`;
|
|
return text;
|
|
}
|