1. this.postDataAndUpload(formData,option.url).then(function (res) {
    2. //上传成功
    3. }).catch(err=>{
    4. //上传失败
    5. })