fix: 🐛 修复规格值为空后,规格错乱问题

master
misworga831 2023-02-01 10:18:38 +08:00
parent 3c65de9912
commit c850a27cca
1 changed files with 4 additions and 0 deletions

View File

@ -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) {