Commit 6e3f46a5 authored by thegatheringstorm's avatar thegatheringstorm Committed by 杨奕

Upload: convert map to forEach

parent 9be1a0ae
......@@ -48,7 +48,7 @@ export default function upload(option) {
const formData = new FormData();
if (option.data) {
Object.keys(option.data).map(key => {
Object.keys(option.data).forEach(key => {
formData.append(key, option.data[key]);
});
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment