fix: 修复无法搜索大写字母的问题

This commit is contained in:
Richex 2021-03-07 15:37:09 +08:00
parent bc421d25d2
commit 08e2ab4125

View File

@ -185,7 +185,7 @@ export default {
search() {
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 {
this.rules = RULES;
}