Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
赵月辉
/
fastgpt-migrated
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Unverified
Commit
3c9f12bb
authored
Jun 11, 2023
by
archer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: render
parent
d0c3d607
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
10 deletions
+6
-10
client/public/docs/versionIntro.md
+3
-9
client/src/components/Markdown/MermaidCodeBlock.tsx
+3
-1
No files found.
client/public/docs/versionIntro.md
View file @
3c9f12bb
### Fast GPT V3.8.
1
### Fast GPT V3.8.
3
1.
新增 - 自定义历史记录标题。
1.
新增 - mermaid 导图兼容,可以在应用市场 'mermaid 导图' 进行体验。
2.
新增 - 置顶历史记录。
2.
优化 - 部分 UI 和账号页。
3.
新增 - 自动置顶最近聊天的模型。
4.
优化 - 索引和 QA 队列,支持多节点和并发(目前线上大概 2500 条/分钟)
5.
优化 - 随机任务,不再按线性等待。
6.
优化 - 内容分段导入和进度查看,不再担心大文件无法导入
7.
优化 - 导出的 csv 大小。最大支持 100M 导出。
8.
知识库数量说明,由于线上数据太多,没法创建索引,所以目前如果超过 5w 组数据,大概率会失败。
client/src/components/Markdown/MermaidCodeBlock.tsx
View file @
3c9f12bb
...
@@ -27,7 +27,9 @@ const MermaidBlock = ({ code }: { code: string }) => {
...
@@ -27,7 +27,9 @@ const MermaidBlock = ({ code }: { code: string }) => {
useEffect
(()
=>
{
useEffect
(()
=>
{
try
{
try
{
mermaidAPI
.
render
(
'mermaid-svg'
,
code
,
(
svgCode
:
string
)
=>
{
const
formatCode
=
code
.
replace
(
/:/g
,
':'
);
mermaidAPI
.
render
(
`mermaid-
${
Date
.
now
()}
`
,
formatCode
,
(
svgCode
:
string
)
=>
{
setSvg
(
svgCode
);
setSvg
(
svgCode
);
});
});
}
catch
(
error
)
{
}
catch
(
error
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment