mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-09-24 13:03:30 +08:00
精简全局变量
This commit is contained in:
@@ -201,6 +201,7 @@ import CommandCard from "components/CommandCard";
|
||||
import ConfigurationMenu from "components/ConfigurationMenu.vue";
|
||||
import CommandRunResult from "components/CommandRunResult.vue";
|
||||
import importAll from "../js/common/importAll.js";
|
||||
import pinyinMatch from "pinyin-match";
|
||||
|
||||
const CommandEditor = defineAsyncComponent(() =>
|
||||
import("components/CommandEditor.vue")
|
||||
@@ -262,7 +263,7 @@ export default {
|
||||
commands.forEach((cmd) => {
|
||||
// 拼音搜索
|
||||
let explain = cmd.features.explain;
|
||||
let matchedWordPositions = window.pinyinMatch(
|
||||
let matchedWordPositions = pinyinMatch.match(
|
||||
explain,
|
||||
this.commandSearchKeyword
|
||||
);
|
||||
|
Reference in New Issue
Block a user