Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
lls_program
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2025-09-19 09:34:01 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
51a6dbb1529f1c56cdfcfc75b5926f3c9d34a4dd
51a6dbb1
1 parent
1de49d2b
fix(UploadMedia): 添加视频时长超过60秒的限制检查
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
src/pages/UploadMedia/index.vue
src/pages/UploadMedia/index.vue
View file @
51a6dbb
...
...
@@ -211,6 +211,16 @@ const chooseMedia = () => {
return;
}
// 检查视频长度(仅对视频进行60秒限制)
if (file.fileType === 'video' && file.duration > 60) {
Taro.showToast({
title: '视频时长不能超过60秒',
icon: 'none',
duration: 2000
});
return;
}
// 显示上传进度
Taro.showLoading({ title: '上传中...' });
...
...
Please
register
or
login
to post a comment