抛出选择的商品信息

main
陈伟 8 months ago
parent 05579109c3
commit 841619f6ef
  1. 1
      src/components/SelectGoods/SelectGoods.vue

@ -118,6 +118,7 @@ export default {
onChange () {
const { multiple, selectedGoodsIds } = this
const sGoodsIds = multiple ? selectedGoodsIds : (selectedGoodsIds.length ? selectedGoodsIds[0] : undefined)
this.$emit('select', multiple ? this.selectedItems : this.selectedItems[0])
return this.$emit('change', sGoodsIds)
}

Loading…
Cancel
Save