fix: 🐛 修复规格值为空后,规格错乱问题
parent
3c65de9912
commit
c850a27cca
|
@ -1383,6 +1383,10 @@ export default {
|
||||||
this.$Message.error("已存在相同规格值!");
|
this.$Message.error("已存在相同规格值!");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (val.value === '') {
|
||||||
|
this.$Message.error("规格值不能为空!");
|
||||||
|
return;
|
||||||
|
}
|
||||||
let curVal = this.currentSkuVal;
|
let curVal = this.currentSkuVal;
|
||||||
this.skuTableData = this.skuTableData.map((e) => {
|
this.skuTableData = this.skuTableData.map((e) => {
|
||||||
if (e[val.name] === curVal) {
|
if (e[val.name] === curVal) {
|
||||||
|
|
Loading…
Reference in New Issue