|
@@ -68,7 +68,8 @@ export default {
|
|
|
this.$set(this.options, this.options.length, elm)
|
|
|
}
|
|
|
}
|
|
|
- if (key === 'label' && `${elm[key]}`.indexOf(`${id}`) > -1) {
|
|
|
+ const reg = new RegExp(id, 'i')
|
|
|
+ if (key === 'label' && reg.test(`${elm[key]}`)) {
|
|
|
if (this.isHave(`${id}`) < 0 && elm.valid) {
|
|
|
this.$set(this.options, this.options.length, elm)
|
|
|
}
|