Config file to set doc baseurl (#419)

This commit is contained in:
Archer
2023-10-23 08:56:43 +08:00
committed by GitHub
parent a3534407bf
commit d37433eacd
12 changed files with 17 additions and 11 deletions

View File

@@ -174,7 +174,7 @@ const Navbar = ({ unread }: { unread: number }) => {
mb={0}
color={'#9096a5'}
onClick={() => {
window.open(`https://doc.fastgpt.run/docs/intro`);
window.open(`${feConfigs.docUrl}/docs/intro`);
}}
>
<MyIcon name={'courseLight'} width={'26px'} height={'26px'} />

View File

@@ -83,7 +83,7 @@ const ApiKeyTable = ({ tips, appId }: { tips: string; appId?: string }) => {
API
</Box>
<Link
href={feConfigs.openAPIUrl || 'https://doc.fastgpt.run/docs/development/openapi'}
href={feConfigs.openAPIDocUrl || 'https://doc.fastgpt.run/docs/development/openapi'}
target={'_blank'}
ml={1}
color={'myBlue.600'}