1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
| export function dataTest(testData) { return request({ url: "/test/dataTest", method: "post", data: testData }) }
test() { let formData = new FormData(); formData.append("name", "莱特雷") formData.append("age", "18") dataTest(formData).then(res => { console.log(res.data) }) }
|