This commit is contained in:
梁灏 2018-12-17 16:06:03 +08:00
parent 315dd685f7
commit 38a28d582b

View file

@ -763,7 +763,10 @@
// #4626 Options label v-model
if (options && options.length && this.values.length) {
this.values = this.values.map(value => {
const option = options.find(option => option.componentOptions.propsData.value === value.value);
const option = options.find(option => {
if (!option.componentOptions) return false;
return option.componentOptions.propsData.value === value.value;
});
if(!option) return null;