|
@@ -266,14 +266,15 @@ export default {
|
|
|
};
|
|
};
|
|
|
if (this.userInfo.photoMethod == '1') {
|
|
if (this.userInfo.photoMethod == '1') {
|
|
|
formData.mediaInfos = [];
|
|
formData.mediaInfos = [];
|
|
|
|
|
+ this.addCollection(formData);
|
|
|
} else {
|
|
} else {
|
|
|
this.mediaInfos = [];
|
|
this.mediaInfos = [];
|
|
|
this.syncUpload(taskPhoto.imgArr, () => {
|
|
this.syncUpload(taskPhoto.imgArr, () => {
|
|
|
this.toastLoading().clear();
|
|
this.toastLoading().clear();
|
|
|
formData.mediaInfos = this.mediaInfos;
|
|
formData.mediaInfos = this.mediaInfos;
|
|
|
|
|
+ this.addCollection(formData);
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
- await this.addCollection(formData);
|
|
|
|
|
},
|
|
},
|
|
|
syncUpload(imgArr, callback) {
|
|
syncUpload(imgArr, callback) {
|
|
|
if (!imgArr.length) {
|
|
if (!imgArr.length) {
|