修改添加商品问题

This commit is contained in:
duan
2024-08-08 14:23:10 +08:00
parent 8c0ca8869a
commit 69b19bfade
2 changed files with 4 additions and 4 deletions

View File

@@ -701,7 +701,7 @@ export default {
if (faild) {
this.loading = true;
this.form.images = arr
this.form.lowPrice = this.form.skuList[0].salePrice;
this.form.lowPrice = this.form.skuList.length && this.form.skuList[0].salePrice;
this.form.coverImg = this.form.images[0];
this.form.selectSpec = JSON.stringify(this.selectSpec);
this.form.specTableHeaders = JSON.stringify(this.specTableHeaders);
@@ -755,8 +755,8 @@ export default {
this.shopTypesActive = index;
const typeEnum = this.shopTypes[index].typeEnum;
this.form.typeEnum = typeEnum;
if (typeEnum == "sku") {
this.form.skuList = [];
this.tbProductSpecGet();
} else {
this.specId = "";