Browse Source

Update index.tsx

lex 1 year ago
parent
commit
29fbf79a8d
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/views/attend-class/index.tsx

+ 2 - 2
src/views/attend-class/index.tsx

@@ -1030,10 +1030,10 @@ export default defineComponent({
     document.body.addEventListener('keyup', (e: KeyboardEvent) => {
       // console.log(e, 'e');
       if (e.code === 'ArrowUp') {
-        if (popupData.activeIndex === 0) return;
+        // if (popupData.activeIndex === 0) return;
         handlePreAndNext('up');
       } else if (e.code === 'ArrowDown') {
-        if (popupData.activeIndex === data.itemList.length - 1) return;
+        // if (popupData.activeIndex === data.itemList.length - 1) return;
         handlePreAndNext('down');
       }
     });