!18 修复编辑sku时,单独编辑的sku图片没有保存问题

Merge pull request !18 from OceansDeep/dev-gl
master
OceansDeep 2022-05-30 06:45:42 +00:00 committed by Gitee
commit 5c34245ba4
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 3 additions and 2 deletions

View File

@ -984,7 +984,8 @@ export default {
if (this.wholesaleData.length < 3) {
this.wholesaleData.push({
price:
Number(this.wholesaleData[this.wholesaleData.length - 1].price) - 0.01,
Number(this.wholesaleData[this.wholesaleData.length - 1].price) -
0.01,
num:
Number(this.wholesaleData[this.wholesaleData.length - 1].num) + 1,
goodsId: this.goodsId,
@ -1459,7 +1460,7 @@ export default {
cost: skus[index].cost,
price: skus[index].price,
[cloneTemp[0].name]: specItem.value,
images: this.baseInfoForm.goodsGalleryFiles || [],
images: skus[index].images || this.baseInfoForm.goodsGalleryFiles || [],
};
if (specItem.value !== "") {
obj.id = skus[index].id;