Progress Bar with axios
问题 I have to display the upload status of the file using a Progress Bar. I am using axios to make http requests. I followed the example from their github page https://github.com/mzabriskie/axios/blob/master/examples/upload/index.html My code looks like this: this.store().then(() => { var form = new FormData(); form.append('video', this.file); form.append('uid', this.uid); axios.post('/upload', form, { progress: (progressEvent) => { if (progressEvent.lengthComputable) { console.log(progressEvent