support #371

This commit is contained in:
layyback 2024-07-18 17:52:20 +08:00
parent 0578c7c7eb
commit 4a2ca33e02
2 changed files with 6 additions and 7 deletions

View File

@ -63,7 +63,7 @@ export default () => {
`window.rubick && window.rubick.hooks && typeof window.rubick.hooks.onShow === "function" && window.rubick.hooks.onShow()`
);
// versonHandler.checkUpdate();
// win.webContents.openDevTools();
win.webContents.openDevTools();
});
win.on('hide', () => {

View File

@ -115,14 +115,13 @@ const changeIndex = (index) => {
currentSelect.value = currentSelect.value + index;
return;
}
if (
currentSelect.value + index > options.value.length - 1 ||
currentSelect.value + index < 0
) {
if (currentSelect.value + index > options.value.length - 1) {
currentSelect.value = 0;
return;
} else if (currentSelect.value + index < 0) {
currentSelect.value = options.value.length - 1;
} else {
currentSelect.value = currentSelect.value + index;
}
currentSelect.value = currentSelect.value + index;
};
const openMenu = (ext) => {