diff --git a/src/components/select/select.vue b/src/components/select/select.vue index d09dd7e..bc7ca02 100644 --- a/src/components/select/select.vue +++ b/src/components/select/select.vue @@ -423,10 +423,13 @@ }; }, getInitialValue(){ - const {multiple, value} = this; + const {multiple, remote, value} = this; let initialValue = Array.isArray(value) ? value : [value]; if (!multiple && (typeof initialValue[0] === 'undefined' || (String(initialValue[0]).trim() === '' && !Number.isFinite(initialValue[0])))) initialValue = []; - if (this.remote && !this.multiple && this.value) this.query = value; + if (remote && !multiple && value) { + const data = this.getOptionData(value); + this.query = data ? data.label : String(value); + } return initialValue.filter((item) => { return Boolean(item) || item === 0; }); -- libgit2 0.21.4