vueはvantのアップロードコントロールと組み合わせてモバイルエンドストリームのアップロードを実現する
543 ワード
//
afterRead(res){
console.log(res);
let formData = new FormData();
formData.append("file",res.file);
this.$axios.post(url,formData,{
headers: { //
"Content-Type": "multipart/form-data"
}
}).then(res=>{
console.log(res);
})
},