mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-06-08 06:16:27 +08:00
修复编排命令搜索结果存在部分不匹配结果的BUG
This commit is contained in:
parent
c6d03a1a98
commit
6e19a5c8ee
@ -117,9 +117,7 @@ export default defineComponent({
|
|||||||
...category,
|
...category,
|
||||||
commands: this.commands
|
commands: this.commands
|
||||||
.filter(
|
.filter(
|
||||||
(cmd) =>
|
(cmd) => cmd.label && window.pinyinMatch.match(cmd.label, query)
|
||||||
(cmd.label && window.pinyinMatch.match(cmd.label, query)) ||
|
|
||||||
(cmd.value && window.pinyinMatch.match(cmd.value, query))
|
|
||||||
)
|
)
|
||||||
.filter((cmd) => cmd.type === category.label),
|
.filter((cmd) => cmd.type === category.label),
|
||||||
}))
|
}))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user