修复编排命令搜索结果存在部分不匹配结果的BUG

This commit is contained in:
fofolee 2025-03-27 20:38:59 +08:00
parent c6d03a1a98
commit 6e19a5c8ee

View File

@ -117,9 +117,7 @@ export default defineComponent({
...category,
commands: this.commands
.filter(
(cmd) =>
(cmd.label && window.pinyinMatch.match(cmd.label, query)) ||
(cmd.value && window.pinyinMatch.match(cmd.value, query))
(cmd) => cmd.label && window.pinyinMatch.match(cmd.label, query)
)
.filter((cmd) => cmd.type === category.label),
}))