提交 8863f0f0 authored 作者: fit2cloud-chenyw's avatar fit2cloud-chenyw

fix: 过滤条件关键字忽略大小写

上级 fddc019f
...@@ -302,7 +302,7 @@ export default { ...@@ -302,7 +302,7 @@ export default {
if (this.showDomType === 'field') { if (this.showDomType === 'field') {
let results = this.originFieldDatas let results = this.originFieldDatas
if (val) { if (val) {
results = this.originFieldDatas.filter(item => item.name.toLocaleLowerCase().includes(val)) results = this.originFieldDatas.filter(item => item.name.toLocaleLowerCase().includes(val.toLocaleLowerCase()))
} }
this.fieldDatas = JSON.parse(JSON.stringify(results)) this.fieldDatas = JSON.parse(JSON.stringify(results))
return return
...@@ -319,7 +319,7 @@ export default { ...@@ -319,7 +319,7 @@ export default {
if (this.comShowDomType === 'field') { if (this.comShowDomType === 'field') {
let results = this.originComFieldDatas let results = this.originComFieldDatas
if (val) { if (val) {
results = this.originComFieldDatas.filter(item => item.name.toLocaleLowerCase().includes(val)) results = this.originComFieldDatas.filter(item => item.name.toLocaleLowerCase().includes(val.toLocaleLowerCase()))
} }
this.comFieldDatas = JSON.parse(JSON.stringify(results)) this.comFieldDatas = JSON.parse(JSON.stringify(results))
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论