ref: 支持插件市场展示插件描述

This commit is contained in:
muwoo
2021-07-21 10:23:37 +08:00
parent c506490933
commit d6df22f98a
3 changed files with 115 additions and 27 deletions

View File

@@ -108,6 +108,7 @@ export default {
ipcRenderer.on('new-window', this.newWindow);
// 超级面板打开插件
ipcRenderer.on('superPanel-openPlugin', (e, args) => {
this.closeTag();
ipcRenderer.send('msg-trigger', {
type: 'showMainWindow',
});
@@ -145,6 +146,11 @@ export default {
});
config && this.openPlugin(config);
});
// 打开偏好设置
ipcRenderer.on('tray-setting', () => {
this.showMainUI();
this.changePath({key: 'settings'});
});
const searchNd = document.getElementById('search');
searchNd && searchNd.addEventListener('keydown', this.checkNeedInit)
},