mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-08-15 10:05:53 +08:00
### What problem does this PR solve? fix: the site domain name in the Chat Bot API is hardcoded. #776 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
parent
fe4b2e4670
commit
1797f5ce31
@ -1,5 +1,4 @@
|
|||||||
import LineChart from '@/components/line-chart';
|
import LineChart from '@/components/line-chart';
|
||||||
import { Domain } from '@/constants/common';
|
|
||||||
import { useSetModalState, useTranslate } from '@/hooks/commonHooks';
|
import { useSetModalState, useTranslate } from '@/hooks/commonHooks';
|
||||||
import { IModalProps } from '@/interfaces/common';
|
import { IModalProps } from '@/interfaces/common';
|
||||||
import { IDialog, IStats } from '@/interfaces/database/chat';
|
import { IDialog, IStats } from '@/interfaces/database/chat';
|
||||||
@ -81,8 +80,7 @@ const ChatOverviewModal = ({
|
|||||||
<Flex gap={8} vertical>
|
<Flex gap={8} vertical>
|
||||||
{t('serviceApiEndpoint')}
|
{t('serviceApiEndpoint')}
|
||||||
<Paragraph copyable className={styles.linkText}>
|
<Paragraph copyable className={styles.linkText}>
|
||||||
https://
|
{location.origin}
|
||||||
{location.hostname === Domain ? Domain : '<YOUR_MACHINE_IP>'}
|
|
||||||
/v1/api/
|
/v1/api/
|
||||||
</Paragraph>
|
</Paragraph>
|
||||||
</Flex>
|
</Flex>
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
import CopyToClipboard from '@/components/copy-to-clipboard';
|
import CopyToClipboard from '@/components/copy-to-clipboard';
|
||||||
import HightLightMarkdown from '@/components/highlight-markdown';
|
import HightLightMarkdown from '@/components/highlight-markdown';
|
||||||
import { Domain } from '@/constants/common';
|
|
||||||
import { useTranslate } from '@/hooks/commonHooks';
|
import { useTranslate } from '@/hooks/commonHooks';
|
||||||
import { IModalProps } from '@/interfaces/common';
|
import { IModalProps } from '@/interfaces/common';
|
||||||
import { Card, Modal, Tabs, TabsProps } from 'antd';
|
import { Card, Modal, Tabs, TabsProps } from 'antd';
|
||||||
@ -16,7 +15,7 @@ const EmbedModal = ({
|
|||||||
const text = `
|
const text = `
|
||||||
~~~ html
|
~~~ html
|
||||||
<iframe
|
<iframe
|
||||||
src="https://${Domain}/chat/share?shared_id=${token}"
|
src="${location.origin}/chat/share?shared_id=${token}"
|
||||||
style="width: 100%; height: 100%; min-height: 600px"
|
style="width: 100%; height: 100%; min-height: 600px"
|
||||||
frameborder="0"
|
frameborder="0"
|
||||||
>
|
>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user