Skip to content

Commit 7fb299d

Browse files
committed
🐛 修复 #268
1 parent 142387d commit 7fb299d

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/renderer/components/result.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
:key="index"
1515
>
1616
<a-avatar style="width: 28px; height: 28px;" :src="item.icon" />
17-
<div class="name ellpise">{{item.pluginName || item._name || item.name}}</div>
17+
<div class="name ellpise">{{item.cmd || item.pluginName || item._name || item.name}}</div>
1818
</a-col>
1919
</a-row>
2020
</div>

src/renderer/plugins-manager/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,9 @@ const createPluginManager = (): any => {
7070
const openPlugin = async (plugin, option) => {
7171
if (plugin.pluginType === 'ui' || plugin.pluginType === 'system') {
7272
if (state.currentPlugin && state.currentPlugin.name === plugin.name) {
73+
ipcRenderer.sendSync('msg-trigger', {
74+
type: 'showMainWindow',
75+
});
7376
return;
7477
}
7578
await loadPlugin(plugin);

0 commit comments

Comments
 (0)