商品添加中,規(guī)格中的規(guī)格值如果全部刪除完,會(huì)出現(xiàn)商品屬性全部消失的問題,針對(duì)此問題,官方做出了代碼修復(fù)。
下圖為bug復(fù)現(xiàn)的圖片。
修改代碼路徑: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);
},
大佬們可以根據(jù)修改代碼處修改下自己的項(xiàng)目,感謝使用crmeb,您的滿意是我們的動(dòng)力。