Преглед на файлове

Merge branch 'iteration-20240522-download' into jenkins

lex преди 1 година
родител
ревизия
93acea4b39
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/views/attend-class/component/audio-pay.tsx

+ 1 - 1
src/views/attend-class/component/audio-pay.tsx

@@ -224,9 +224,9 @@ export default defineComponent({
       };
 
       // 获取视频总时长
-      const duration = element.duration;
       let noData = false;
       const onProgress = () => {
+        const duration = element.duration;
         const currentTime = Date.now();
         const buffered = element.buffered;
         let currentBytesLoaded = 0;