const fileList = reactive name foodjpeg url httpsfuss10elemecdncom3634e7f3a15429bfda99bce42a18cdd1jpegjpegimageMogr2thumbnail360x360formatwebpquality100 name foodjpeg
因为在代码中,对于formData的操作是在Promise.all的回调函数中进行的,而Promise.all是一个异步操作,需要等待所有的Promise完成后才会执行回调函数,所以在console.log(formData)的时候,Promise.all的回调函数还没有执行,formData还没有被填充。如果想要查看formData的内容,需要将console.log(formData)放到Promise.all的回调函数中。
原文地址: http://www.cveoy.top/t/topic/ckH9 著作权归作者所有。请勿转载和采集!