Try cactch control edited
This commit is contained in:
parent
81852f00fa
commit
8808d326ce
@ -318,9 +318,16 @@ export default {
|
|||||||
this.selected = this.value;
|
this.selected = this.value;
|
||||||
|
|
||||||
if (this.model.length) {
|
if (this.model.length) {
|
||||||
if (this.model !== undefined) {
|
try {
|
||||||
|
if (eval(this.model) !== undefined) {
|
||||||
|
this.selected = eval(this.model);
|
||||||
|
} else {
|
||||||
|
this.selected = this.model;
|
||||||
|
}
|
||||||
|
} catch (e) {
|
||||||
this.selected = this.model;
|
this.selected = this.model;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.multiple && !this.selected.length) {
|
if (this.multiple && !this.selected.length) {
|
||||||
|
@ -430,9 +430,16 @@ export default {
|
|||||||
this.selected = this.value;
|
this.selected = this.value;
|
||||||
|
|
||||||
if (this.model.length) {
|
if (this.model.length) {
|
||||||
if (this.model !== undefined) {
|
try {
|
||||||
|
if (eval(this.model) !== undefined) {
|
||||||
|
this.selected = eval(this.model);
|
||||||
|
} else {
|
||||||
|
this.selected = this.model;
|
||||||
|
}
|
||||||
|
} catch (e) {
|
||||||
this.selected = this.model;
|
this.selected = this.model;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.multiple && !this.selected.length) {
|
if (this.multiple && !this.selected.length) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user