Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
mlaj
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-03-25 11:32:51 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
2a3c634c52924ca649dbcbd587d0f479b005c402
2a3c634c
1 parent
a7615f9b
style(UploadVideoPopup): 更新进度条样式并清除上传结果
更新进度条的颜色和渐变样式以提升视觉效果。在上传新文件前清除之前的上传结果,确保用户界面的一致性。
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletions
src/components/ui/UploadVideoPopup.vue
src/components/ui/UploadVideoPopup.vue
View file @
2a3c634
...
...
@@ -26,7 +26,7 @@
</van-uploader>
<div v-if="uploadProgress > 0 && uploadProgress < 100" class="progress">
<van-progress :percentage="uploadProgress" :show-pivot="true" />
<van-progress :percentage="uploadProgress" :show-pivot="true"
pivot-color="#7232dd" color="linear-gradient(to right, #be99ff, #7232dd)"
/>
</div>
<div v-if="videoUrl" class="video-preview">
...
...
@@ -84,6 +84,12 @@ const beforeRead = (file) => {
};
const afterRead = async (file) => {
// 清除之前的上传结果
videoUrl.value = '';
videoId.value = '';
videoName.value = '';
uploadProgress.value = 0;
const formData = new FormData();
formData.append('file', file.file);
...
...
Please
register
or
login
to post a comment