mirror of
https://github.com/any86/any-rule.git
synced 2025-07-14 15:38:58 +08:00
fix: 修复无法搜索大写字母的问题
This commit is contained in:
parent
bc421d25d2
commit
08e2ab4125
@ -185,7 +185,7 @@ export default {
|
|||||||
|
|
||||||
search() {
|
search() {
|
||||||
if ('' !== this.keyword) {
|
if ('' !== this.keyword) {
|
||||||
this.rules = this.rules.filter(({ title }) => -1 !== title.indexOf(this.keyword.toLowerCase()));
|
this.rules = this.rules.filter(({ title }) => -1 !== title.toLowerCase().indexOf(this.keyword.toLowerCase()));
|
||||||
} else {
|
} else {
|
||||||
this.rules = RULES;
|
this.rules = RULES;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user