解决商品分类控件-添加一个品种后重复添加问题

This commit is contained in:
lemon橪
2022-05-31 11:17:05 +08:00
parent 160658cfb6
commit 58eeed4bbd
2 changed files with 4 additions and 0 deletions

View File

@@ -24,6 +24,9 @@ export default {
};
},
methods: {
clearGoodsSelected(){
this.goodsData = []
},
// 关闭弹窗
clickClose() {
this.$emit("closeFlag", false);

View File

@@ -455,6 +455,7 @@ export default {
},
// 打开图片选择器
liliDialogFlag(flag) {
this.$refs.liliDialog.clearGoodsSelected()
this.$refs.liliDialog.goodsFlag = flag;
this.$refs.liliDialog.flag = true;
},