浏览代码

Merge branch 'iteration_0310' into jenkins

lex 1 年之前
父节点
当前提交
980c5c61dc
共有 1 个文件被更改,包括 11 次插入4 次删除
  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 () => {
     const onSubmit = async () => {
       try {
       try {
-        // 暂停回调
-        forms.player.pause()
         forms.intervalFnRef?.pause()
         forms.intervalFnRef?.pause()
         currentTimer.pause()
         currentTimer.pause()
         // 页面计时暂停
         // 页面计时暂停
@@ -296,7 +294,6 @@ export default defineComponent({
             orchestraId: forms.orchestraId,
             orchestraId: forms.orchestraId,
             openId: forms.openId
             openId: forms.openId
           })
           })
-
         // window.location.href =
         // window.location.href =
         //   window.location.origin +
         //   window.location.origin +
         //   '/project/preRegister.html?' +
         //   '/project/preRegister.html?' +
@@ -405,7 +402,17 @@ export default defineComponent({
             </p>
             </p>
           </div>
           </div>
 
 
-          <Button class={styles.submitBtn} onClick={onSubmit}></Button>
+          <Button
+            class={styles.submitBtn}
+            onClick={() => {
+              // 暂停回调
+              forms.player.pause()
+              videoIntervalRef.pause()
+              setTimeout(() => {
+                onSubmit()
+              }, 100)
+            }}
+          ></Button>
         </div>
         </div>
       </div>
       </div>
     )
     )