feat: 只接受Mp4文件

This commit is contained in:
2026-03-09 15:48:02 +08:00
parent c91981f3d5
commit ad0a90e545
3 changed files with 7 additions and 7 deletions

View File

@@ -215,7 +215,7 @@
:customRequest="handleUploadVideo"
:beforeUpload="beforeUploadVideo"
@remove="handleRemoveFile('video')"
accept=".mp4,.mov"
accept=".mp4"
>
<img
src="@/assets/images/award/upload_video_icon.png"
@@ -747,7 +747,7 @@ const beforeUploadFile = async (type: FileType, file: File) => {
errorMessage = t('AwardApply.uploadPdfOnly')
} else if (type === 'video') {
maxSize = 100 * 1024 * 1024 // 100MB
allowedExtensions = ['mp4', 'mov']
allowedExtensions = ['mp4']
allowedMimeTypes = ['video/mp4', 'video/quicktime']
errorMessage = t('AwardApply.uploadVideoOnly')
} else {