浏览代码

修改链接

lex 1 年之前
父节点
当前提交
3e6a1ce81a
共有 2 个文件被更改,包括 12 次插入12 次删除
  1. 2 2
      src/student/main.ts
  2. 10 10
      src/student/pre-register-active/video.tsx

+ 2 - 2
src/student/main.ts

@@ -54,8 +54,8 @@ if (state.platformType === 'TEACHER') {
   state.platformApi = '/api-student'
 }
 
-// import Vconsole from 'vconsole'
-// const vconsole = new Vconsole()
+import Vconsole from 'vconsole'
+const vconsole = new Vconsole()
 const app = createApp(App).use(Vue3Lottie)
 app.use(router)
 

+ 10 - 10
src/student/pre-register-active/video.tsx

@@ -258,7 +258,7 @@ export default defineComponent({
         const videoDuration = forms.player.duration
         // 判断如何视屏播放时间大于视屏播放有效时间则说明数据有问题,进行重置数据
         const rate = Math.floor((time / Math.floor(videoDuration)) * 100)
-
+        // console.log('videoIntervalRef?.counter.value', videoIntervalRef?.counter.value)
         await request.post('/api-student/open/studentBrowseRecord/updateStat', {
           data: {
             id: forms.saveId,
@@ -287,22 +287,22 @@ export default defineComponent({
         initVideoCount(videoIntervalRef.isActive.value)
 
         await updateStat()
-        // window.location.href =
-        //   window.location.origin +
-        //   window.location.pathname +
-        //   '/project/preRegister.html?' +
-        //   qs.stringify({
-        //     orchestraId: forms.orchestraId,
-        //     openId: forms.openId
-        //   })
-
         window.location.href =
           window.location.origin +
+          window.location.pathname +
           '/project/preRegister.html?' +
           qs.stringify({
             orchestraId: forms.orchestraId,
             openId: forms.openId
           })
+
+        // window.location.href =
+        //   window.location.origin +
+        //   '/project/preRegister.html?' +
+        //   qs.stringify({
+        //     orchestraId: forms.orchestraId,
+        //     openId: forms.openId
+        //   })
       } catch (e) {
         console.log(e, 'e')
         // 还原