Skip to content

Commit

Permalink
Merge branch 'main' into pr@main@fix_bugs
Browse files Browse the repository at this point in the history
# Conflicts:
#	ui/src/views/dataset/component/UploadComponent.vue
  • Loading branch information
shaohuzhang1 committed Apr 10, 2024
2 parents 3d82e05 + e9d85b0 commit d327ae7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ui/src/views/dataset/component/UploadComponent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
</p>
<div class="upload__decoration">
<p>
支持格式:TXT、Markdown、PDF、DOC、DOCX,每次最多上传50个文件,每个文件不超过 10MB
支持格式:TXT、Markdown、PDF、DOC、DOCX,每次最多上传50个文件,每个文件不超过 100MB
</p>
<p>若使用【高级分段】建议上传前规范文件的分段标识</p>
</div>
Expand Down Expand Up @@ -85,9 +85,9 @@ function deleteFlie(index: number) {
// 上传on-change事件
const filehandleChange = (file: any, fileList: UploadFiles) => {
//1、判断文件大小是否合法,文件限制不能大于10M
const isLimit = file?.size / 1024 / 1024 < 10
const isLimit = file?.size / 1024 / 1024 < 100
if (!isLimit) {
MsgError('文件大小超过 10MB')
MsgError('文件大小超过 100MB')
fileList.splice(-1, 1) //移除当前超出大小的文件
return false
}
Expand Down

0 comments on commit d327ae7

Please sign in to comment.