🐛 修复插件市场搜索空白问题

This commit is contained in:
muwoo
2021-12-22 14:58:42 +08:00
parent 5cfaa70c67
commit dc656d3bca
15 changed files with 35 additions and 10 deletions

View File

@@ -55,6 +55,11 @@ const changeMenu = (key: any) => {
router.push(key);
};
window.rubick.onPluginEnter(({ code }: { code: string }) => {
changeMenu(code);
active.value = [code];
});
const store = useStore();
const init = () => store.dispatch("init");
init();