Explorar o código

Merge branch 'iteration_0310' into jenkins

lex hai 1 ano
pai
achega
980c5c61dc
Modificáronse 1 ficheiros con 11 adicións e 4 borrados
  1. 11 4
      src/student/pre-register-active/video.tsx

+ 11 - 4
src/student/pre-register-active/video.tsx

@@ -280,8 +280,6 @@ export default defineComponent({
     // 提交
     const onSubmit = async () => {
       try {
-        // 暂停回调
-        forms.player.pause()
         forms.intervalFnRef?.pause()
         currentTimer.pause()
         // 页面计时暂停
@@ -296,7 +294,6 @@ export default defineComponent({
             orchestraId: forms.orchestraId,
             openId: forms.openId
           })
-
         // window.location.href =
         //   window.location.origin +
         //   '/project/preRegister.html?' +
@@ -405,7 +402,17 @@ export default defineComponent({
             </p>
           </div>
 
-          <Button class={styles.submitBtn} onClick={onSubmit}></Button>
+          <Button
+            class={styles.submitBtn}
+            onClick={() => {
+              // 暂停回调
+              forms.player.pause()
+              videoIntervalRef.pause()
+              setTimeout(() => {
+                onSubmit()
+              }, 100)
+            }}
+          ></Button>
         </div>
       </div>
     )