Commit a231675a authored by wangdanlei's avatar wangdanlei

Update index.vue

parent 55e2dd8f
......@@ -56,7 +56,9 @@ export default {
this.selection = val
},
submitEvent() {
this.$emit('submitEvent', { formData: this.selection.map(item => item.inventory) })
if (this.selection.length) {
this.$emit('submitEvent', { formData: this.selection.map(item => item.inventory) })
}
},
cancelEvent() {
this.$emit('cancel')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment