Skip to content

Commit 4a2ca33

Browse files
committed
✨ support rubickCenter#371
1 parent 0578c7c commit 4a2ca33

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

src/main/browsers/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export default () => {
6363
`window.rubick && window.rubick.hooks && typeof window.rubick.hooks.onShow === "function" && window.rubick.hooks.onShow()`
6464
);
6565
// versonHandler.checkUpdate();
66-
// win.webContents.openDevTools();
66+
win.webContents.openDevTools();
6767
});
6868

6969
win.on('hide', () => {

src/renderer/App.vue

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -115,14 +115,13 @@ const changeIndex = (index) => {
115115
currentSelect.value = currentSelect.value + index;
116116
return;
117117
}
118-
if (
119-
currentSelect.value + index > options.value.length - 1 ||
120-
currentSelect.value + index < 0
121-
) {
118+
if (currentSelect.value + index > options.value.length - 1) {
122119
currentSelect.value = 0;
123-
return;
120+
} else if (currentSelect.value + index < 0) {
121+
currentSelect.value = options.value.length - 1;
122+
} else {
123+
currentSelect.value = currentSelect.value + index;
124124
}
125-
currentSelect.value = currentSelect.value + index;
126125
};
127126
128127
const openMenu = (ext) => {

0 commit comments

Comments
 (0)