From 7fb299d2703f0b82a3ccbcd74b6817576421b2e7 Mon Sep 17 00:00:00 2001 From: muwoo <2424880409@qq.com> Date: Thu, 19 Oct 2023 15:24:13 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20=E4=BF=AE=E5=A4=8D=20#268?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderer/components/result.vue | 2 +- src/renderer/plugins-manager/index.ts | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/renderer/components/result.vue b/src/renderer/components/result.vue index 12d2a89a..70bdd1ca 100644 --- a/src/renderer/components/result.vue +++ b/src/renderer/components/result.vue @@ -14,7 +14,7 @@ :key="index" > -
{{item.pluginName || item._name || item.name}}
+
{{item.cmd || item.pluginName || item._name || item.name}}
diff --git a/src/renderer/plugins-manager/index.ts b/src/renderer/plugins-manager/index.ts index 24749a8c..eb94cf99 100644 --- a/src/renderer/plugins-manager/index.ts +++ b/src/renderer/plugins-manager/index.ts @@ -70,6 +70,9 @@ const createPluginManager = (): any => { const openPlugin = async (plugin, option) => { if (plugin.pluginType === 'ui' || plugin.pluginType === 'system') { if (state.currentPlugin && state.currentPlugin.name === plugin.name) { + ipcRenderer.sendSync('msg-trigger', { + type: 'showMainWindow', + }); return; } await loadPlugin(plugin);