适配超级面板

This commit is contained in:
muwoo
2021-12-09 20:36:33 +08:00
parent b3a00c88ad
commit 1ee379b288
10 changed files with 35 additions and 9 deletions

View File

@@ -83,6 +83,12 @@ const createPluginManager = (): any => {
remote.getGlobal("LOCAL_PLUGINS").updatePlugin(currentPlugin);
};
window.setCurrentPlugin = ({ currentPlugin }) => {
console.log(currentPlugin);
state.currentPlugin = currentPlugin;
setSearchValue("");
};
window.initRubick = () => {
state.currentPlugin = {};
setSearchValue("");