From 1d680640f76628612c501a2af81de49ab9dc3916 Mon Sep 17 00:00:00 2001 From: m430 <360475097@qq.com> Date: Thu, 7 Jun 2018 15:17:06 +0800 Subject: [PATCH] fixed the multiple cannot be force set the query value. --- src/components/select/select.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/select/select.vue b/src/components/select/select.vue index 228c23a..d09dd7e 100644 --- a/src/components/select/select.vue +++ b/src/components/select/select.vue @@ -426,7 +426,7 @@ const {multiple, 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.value) this.query = Array.isArray(value) ? "" : value; + if (this.remote && !this.multiple && this.value) this.query = value; return initialValue.filter((item) => { return Boolean(item) || item === 0; }); -- libgit2 0.21.4