Преглед изворни кода

Merge branch 'iteration-class'

lex пре 1 година
родитељ
комит
f316bc7bd5

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

@@ -353,7 +353,8 @@ export default defineComponent({
       for (let i = 0; i < data.itemList.length; i++) {
         const activeItem = data.itemList[i];
         if (activeItem.type === 'VIDEO' && activeItem.videoEle) {
-          activeItem.videoEle.stop();
+          activeItem.videoEle.currentTime(0);
+          activeItem.videoEle.pause();
         }
 
         if (activeItem.type === 'SONG' && activeItem.audioEle) {

+ 2 - 2
src/views/prepare-lessons/components/lesson-main/courseware/index.module.less

@@ -77,7 +77,7 @@
   display: flex;
   flex-flow: row wrap;
   justify-content: flex-start;
-  gap: 25px;
+  gap: 20px;
 }
 
 .attendClassModal {
@@ -166,4 +166,4 @@
       }
     }
   }
-}
+}