富文本代码修改

This commit is contained in:
纪寒 2022-12-08 11:23:02 +08:00
parent bfccbed146
commit 3aceca9de1
3 changed files with 5 additions and 2 deletions

View File

@ -393,6 +393,7 @@ export default {
if (this.imgone != this.form.goodsPictureUrl) { if (this.imgone != this.form.goodsPictureUrl) {
obj.pictureUrlList.push(this.imgone); obj.pictureUrlList.push(this.imgone);
} }
this.imgsurl={pictureUrlList:[]};
if (obj.pictureUrlList.length > 0) { if (obj.pictureUrlList.length > 0) {
updatePicture(obj).then((res) => { updatePicture(obj).then((res) => {
console.log(res); console.log(res);
@ -481,4 +482,4 @@ export default {
}); });
}, },
}, },
}; };

View File

@ -373,6 +373,7 @@ export default {
if (this.imgtwo != this.form.stationPictureUrl) { if (this.imgtwo != this.form.stationPictureUrl) {
obj.pictureUrlList.push(this.imgtwo); obj.pictureUrlList.push(this.imgtwo);
} }
this.imgsurl={pictureUrlList:[]};
if (obj.pictureUrlList.length > 0) { if (obj.pictureUrlList.length > 0) {
updatePicture(obj).then((res) => {}); updatePicture(obj).then((res) => {});
} }
@ -457,4 +458,4 @@ export default {
this.upload.isUploading = true; this.upload.isUploading = true;
}, },
}, },
}; };

View File

@ -473,6 +473,7 @@ export default {
if (obj.pictureUrlList.length > 0) { if (obj.pictureUrlList.length > 0) {
updatePicture(obj).then((res) => { }); updatePicture(obj).then((res) => { });
} }
this.imgsurl={pictureUrlList:[]};
this.form.nurseStationItemPrices.forEach(e => { this.form.nurseStationItemPrices.forEach(e => {
e.price = Number(e.price) e.price = Number(e.price)
}) })