Add (v1)
This commit is contained in:
@@ -345,10 +345,12 @@ export default {
|
||||
const formData = new FormData();
|
||||
|
||||
for (const [key, _item] of Object.entries(this.post)) {
|
||||
if (key == "body") {
|
||||
formData.append(key, JSON.stringify(_item));
|
||||
} else {
|
||||
formData.append(key, _item);
|
||||
if (_item != null) {
|
||||
if (key == "body") {
|
||||
formData.append(key, JSON.stringify(_item));
|
||||
} else {
|
||||
formData.append(key, _item);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user