@@ -345,8 +345,10 @@ export default {
};
if (res.isUpdate) form.isUpdate = 'true';
addPhotoToDB(form).then((resData) => {
- res.data.fileId = resData.fileId;
- this.normalFlow(res);
+ if (res.code == 200) {
+ res.data.fileId = resData.data.fileId;
+ this.normalFlow(res);
+ }
});
}
},