支持系统插件

This commit is contained in:
muwoo
2021-12-08 20:01:25 +08:00
parent 8a35e60e48
commit 64f2eba2fa
3 changed files with 65 additions and 1 deletions

View File

@@ -25,6 +25,8 @@ const optionsManager = ({ searchValue, baseDir, appList, openPlugin, currentPlug
// todo 先搜索 plugin
localPlugins.forEach((plugin) => {
const feature = plugin.features;
// 系统插件无 features 的情况,不需要再搜索
if (!feature) return;
feature.forEach((fe) => {
const cmds = searchKeyValues(fe.cmds, value);
options = [