mirror of
https://github.com/rubickCenter/rubick
synced 2025-06-09 04:16:23 +08:00
Merge branch 'rubickCenter:master' into master
This commit is contained in:
commit
54ad4ef7b2
@ -14,7 +14,7 @@
|
|||||||
:key="index"
|
:key="index"
|
||||||
>
|
>
|
||||||
<a-avatar style="width: 28px; height: 28px;" :src="item.icon" />
|
<a-avatar style="width: 28px; height: 28px;" :src="item.icon" />
|
||||||
<div class="name ellpise">{{item.pluginName || item._name || item.name}}</div>
|
<div class="name ellpise">{{item.cmd || item.pluginName || item._name || item.name}}</div>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
</div>
|
</div>
|
||||||
|
@ -70,6 +70,9 @@ const createPluginManager = (): any => {
|
|||||||
const openPlugin = async (plugin, option) => {
|
const openPlugin = async (plugin, option) => {
|
||||||
if (plugin.pluginType === 'ui' || plugin.pluginType === 'system') {
|
if (plugin.pluginType === 'ui' || plugin.pluginType === 'system') {
|
||||||
if (state.currentPlugin && state.currentPlugin.name === plugin.name) {
|
if (state.currentPlugin && state.currentPlugin.name === plugin.name) {
|
||||||
|
ipcRenderer.sendSync('msg-trigger', {
|
||||||
|
type: 'showMainWindow',
|
||||||
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
await loadPlugin(plugin);
|
await loadPlugin(plugin);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user