Add select model assign
This commit is contained in:
parent
815a615ddf
commit
449a6c034f
@ -543,6 +543,10 @@ export default {
|
|||||||
mounted() {
|
mounted() {
|
||||||
this.real_model = this.value;
|
this.real_model = this.value;
|
||||||
|
|
||||||
|
if (this.model.length) {
|
||||||
|
this.real_model = this.model;
|
||||||
|
}
|
||||||
|
|
||||||
if (this.multiple && !this.real_model.length) {
|
if (this.multiple && !this.real_model.length) {
|
||||||
this.real_model = [];
|
this.real_model = [];
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user