商品添加中,規格中的規格值如果全部刪除完,會出現商品屬性全部消失的問題,針對此問題,官方做出了代碼修復。
下圖為bug復現的圖片。
修改代碼路徑:views --- product --- creatProduct --- index.vue
html:
@close="handleClose(item.attrValue, indexn, index)"
js:
// 刪除屬性
handleClose(item, index, attrIndex) {
if (item.length === 1) this.handleRemoveAttr(attrIndex);
item.splice(index, 1);
},
大佬們可以根據修改代碼處修改下自己的項目,感謝使用crmeb,您的滿意是我們的動力。