mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-23 13:03:50 +00:00
feat: 增加自定义 meta description; (#1246)
* feat: 增加自定义 meta description; * fix: 环境变量使用错误; --------- Co-authored-by: junshun.mq <junshun.mq@alibaba-inc.com>
This commit is contained in:
@@ -106,6 +106,7 @@ FastGPT 商业版共包含了2个应用(fastgpt, fastgpt-plus)和2个数据
|
||||
|
||||
```
|
||||
SYSTEM_NAME=FastGPT
|
||||
SYSTEM_DESCRIPTION=
|
||||
SYSTEM_FAVICON=/favicon.ico
|
||||
HOME_URL=/app/list
|
||||
```
|
||||
|
@@ -37,6 +37,7 @@ export type FastGPTFeConfigsType = {
|
||||
chatbotUrl?: string;
|
||||
openAPIDocUrl?: string;
|
||||
systemTitle?: string;
|
||||
systemDescription?: string;
|
||||
googleClientVerKey?: string;
|
||||
isPlus?: boolean;
|
||||
show_phoneLogin?: boolean;
|
||||
|
@@ -19,7 +19,11 @@ function App({ Component, pageProps }: AppProps) {
|
||||
<title>{title}</title>
|
||||
<meta
|
||||
name="description"
|
||||
content={`${title} 是一个大模型应用编排系统,提供开箱即用的数据处理、模型调用等能力,可以快速的构建知识库并通过 Flow 可视化进行工作流编排,实现复杂的知识库场景!`}
|
||||
content={
|
||||
feConfigs?.systemDescription ||
|
||||
process.env.SYSTEM_DESCRIPTION ||
|
||||
`${title} 是一个大模型应用编排系统,提供开箱即用的数据处理、模型调用等能力,可以快速的构建知识库并通过 Flow 可视化进行工作流编排,实现复杂的知识库场景!`
|
||||
}
|
||||
/>
|
||||
<meta
|
||||
name="viewport"
|
||||
|
@@ -1,4 +1,4 @@
|
||||
import { GET, POST, PUT, DELETE } from '@/web/common/api/request';
|
||||
import type { InitDateResponse } from '@/global/common/api/systemRes';
|
||||
import { GET } from '@/web/common/api/request';
|
||||
|
||||
export const getSystemInitData = () => GET<InitDateResponse>('/common/system/getInitData');
|
||||
|
Reference in New Issue
Block a user