fix: 🐛 修复 Upload 开启 multiple 后只能成功上传最后一个文件的问题 - #1044
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Walkthrough本次变更在上传页面新增了多文件上传的演示示例,并在上传组件中移除了 Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant IndexVue
participant WdUpload
User->>IndexVue: 选择多个文件
IndexVue->>WdUpload: 传递fileList2和multiple
loop 对每个文件
WdUpload->>WdUpload: startUploadFiles(不再中断前一个上传)
WdUpload->>IndexVue: onChange/handleChange2
end
Assessment against linked issues
Possibly related PRs
Poem
Tip ⚡️ Faster reviews with caching
Enjoy the performance boost—your workflow just got faster. 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (2)
⏰ Context from checks skipped due to timeout of 90000ms (5)
🔇 Additional comments (4)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
概要修复了在 变更
|
✅ Deploy Preview for wot-design-uni ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Deploying wot-design-uni with
|
| Latest commit: |
2c4f141
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://2eccf18b.wot-design-uni.pages.dev |
| Branch Preview URL: | https://fix-upload-multiple-error.wot-design-uni.pages.dev |
|
Codecov ReportAttention: Patch coverage is
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files@@ Coverage Diff @@
## master #1044 +/- ##
===========================================
- Coverage 70.31% 52.18% -18.13%
===========================================
Files 2 11 +9
Lines 64 962 +898
Branches 9 94 +85
===========================================
+ Hits 45 502 +457
- Misses 19 460 +441
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
组件测试摘要 (H5 平台)测试时间: Thu May 8 07:06:42 UTC 2025测试结果
|
✅ Closes: #1043
🤔 这个 PR 的性质是?(至少选择一个)
🔗 相关 Issue
#1043
💡 需求背景和解决方案
修复 Upload 开启 multiple 后只能成功上传最后一个文件的问题,useUpload提供的上传方法,提供了取消上次上传请求的参数,而Upload默认开启了此选项,导致产生此问题。
☑️ 请求合并前的自查清单
Summary by CodeRabbit
新功能
修复
优化