forked from github/dataease
fix: 仪表板搜索不区分大小写
This commit is contained in:
parent
1e6736c81b
commit
85a8f3eadb
@ -1127,8 +1127,9 @@ export default {
|
||||
},
|
||||
filterNode(value, data) {
|
||||
if (!value) return true
|
||||
const result = data.label.toLowerCase().indexOf(value.toLowerCase()) !== -1
|
||||
if (this.searchType === 'folder') {
|
||||
if (data.nodeType === 'folder' && data.label.indexOf(value) !== -1) {
|
||||
if (data.nodeType === 'folder' && result) {
|
||||
this.searchPids.push(data.id)
|
||||
return true
|
||||
}
|
||||
@ -1139,7 +1140,7 @@ export default {
|
||||
return true
|
||||
}
|
||||
} else {
|
||||
return data.label.indexOf(value) !== -1
|
||||
return result
|
||||
}
|
||||
return false
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user