📅  最后修改于: 2022-03-11 14:59:02             🧑  作者: Mango
let barArray = [{item: 'one'}, {item: 'two'}];
let data = FormData();
data.append('foo', JSON.stringify(barArray))
this.$inertia.post('/upload', data);