open settings with tray

This commit is contained in:
layyback
2023-03-11 10:31:18 +08:00
parent f69bc59130
commit 36b1fd5588
3 changed files with 37 additions and 15 deletions

View File

@@ -97,14 +97,17 @@ const changeIndex = index => {
currentSelect.value = currentSelect.value + index;
};
const openMenu = () => {
const openMenu = (ext) => {
openPlugin({
...toRaw(menuPluginInfo.value),
feature: menuPluginInfo.value.features[0],
cmd: "插件市场"
cmd: "插件市场",
ext
});
};
window.rubick.openMenu = openMenu
const choosePlugin = () => {
const currentChoose = options.value[currentSelect.value];
currentChoose.click();