抛出选择的商品信息

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

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

Loading…
Cancel
Save