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
874300a5
authored
May 25, 2025
by
Archer
Committed by
GitHub
May 25, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: chinese name export (#4890)
* fix: chinese name export * fix: xlsx white space * doc * doc
parent
1dea2b71
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
10 deletions
+13
-10
docSite/content/zh-cn/docs/development/upgrading/4910.md
+3
-2
docSite/content/zh-cn/docs/shopping_cart/intro.md
+0
-1
packages/service/worker/readFile/extension/xlsx.ts
+5
-5
projects/app/src/pages/api/core/dataset/collection/create/backup.ts
+1
-1
projects/app/src/pages/api/core/dataset/exportAll.ts
+4
-1
No files found.
docSite/content/zh-cn/docs/development/upgrading/4910.md
View file @
874300a5
...
...
@@ -30,4 +30,5 @@ weight: 790
2.
流响应捕获 finish_reason 可能不正确。
3.
工具调用模式,未保存思考输出。
4.
知识库 indexSize 参数未生效。
5.
工作流嵌套 2 层后,获取预览引用、上下文不正确。
\ No newline at end of file
5.
工作流嵌套 2 层后,获取预览引用、上下文不正确。
6.
xlsx 转成 Markdown 时候,前面会多出一个空格。
\ No newline at end of file
docSite/content/zh-cn/docs/shopping_cart/intro.md
View file @
874300a5
...
...
@@ -28,7 +28,6 @@ FastGPT 商业版是基于 FastGPT 开源版的增强版本,增加了一些独
| 应用发布安全配置 | ❌ | ✅ | ✅ |
| 内容审核 | ❌ | ✅ | ✅ |
| web站点同步 | ❌ | ✅ | ✅ |
| 主流文档库接入(目前支持:语雀、飞书) | ❌ | ✅ | ✅ |
| 增强训练模式 | ❌ | ✅ | ✅ |
| 第三方应用快速接入(飞书、公众号) | ❌ | ✅ | ✅ |
| 管理后台 | ❌ | ✅ | 不需要 |
...
...
packages/service/worker/readFile/extension/xlsx.ts
View file @
874300a5
...
...
@@ -28,11 +28,11 @@ export const readXlsxRawText = async ({
if
(
!
header
)
return
;
const
formatText
=
`|
${
header
.
join
(
' | '
)}
|
|
${
header
.
map
(()
=>
'---'
).
join
(
' | '
)}
|
${
csvArr
.
slice
(
1
)
.
map
((
row
)
=>
`|
${
row
.
map
((
item
)
=>
item
.
replace
(
/
\n
/g
,
'\\n'
)).
join
(
' | '
)}
|`
)
.
join
(
'\n'
)}
`
;
|
${
header
.
map
(()
=>
'---'
).
join
(
' | '
)}
|
${
csvArr
.
slice
(
1
)
.
map
((
row
)
=>
`|
${
row
.
map
((
item
)
=>
item
.
replace
(
/
\n
/g
,
'\\n'
)).
join
(
' | '
)}
|`
)
.
join
(
'\n'
)}
`
;
return
formatText
;
})
...
...
projects/app/src/pages/api/core/dataset/collection/create/backup.ts
View file @
874300a5
...
...
@@ -48,7 +48,7 @@ async function handler(req: ApiRequestProps<backupBody, backupQuery>, res: ApiRe
encoding
:
file
.
encoding
,
getFormatText
:
false
});
if
(
!
rawText
.
startsWith
(
'q,a,indexes'
))
{
if
(
!
rawText
.
trim
().
startsWith
(
'q,a,indexes'
))
{
return
Promise
.
reject
(
'Backup file start with "q,a,indexes"'
);
}
// 2. delete tmp file
...
...
projects/app/src/pages/api/core/dataset/exportAll.ts
View file @
874300a5
...
...
@@ -50,7 +50,10 @@ async function handler(req: NextApiRequest, res: NextApiResponse<any>) {
});
res
.
setHeader
(
'Content-Type'
,
'text/csv; charset=utf-8;'
);
res
.
setHeader
(
'Content-Disposition'
,
`attachment; filename=
${
dataset
.
name
}
-backup.csv;`
);
res
.
setHeader
(
'Content-Disposition'
,
`attachment; filename=
${
encodeURIComponent
(
dataset
.
name
)}
-backup.csv;`
);
const
cursor
=
MongoDatasetData
.
find
<
DataItemType
>
(
{
...
...
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