liushengqiang před 1 rokem
rodič
revize
3c4b8d8b5f

+ 1 - 1
src/views/courseware-play/component/video-item/index.tsx

@@ -149,7 +149,7 @@ export default defineComponent({
         // 视频播放结束
         videoItem.value.on('ended', () => {
           data.playState = 'pause';
-          emit('ended');
+          // emit('ended');
         });     
 
         videoItem.value.on('playing', () => {

+ 4 - 4
src/views/courseware-play/index.tsx

@@ -773,10 +773,10 @@ export default defineComponent({
                     activeData.model = true
                   }}
                   onEnded={() => {
-                    const _index = popupData.activeIndex + 1
-                    if (_index < data.itemList.length) {
-                      handleSwipeChange(_index);
-                    }
+                    // const _index = popupData.activeIndex + 1
+                    // if (_index < data.itemList.length) {
+                    //   handleSwipeChange(_index);
+                    // }
                   }}
                 />
               </div>