소스 검색

课后训练下一题

skyblued 2 년 전
부모
커밋
a94f36da36
2개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      src/views/coursewarePlay/index.tsx
  2. 1 0
      src/views/exercise-after-class/index.tsx

+ 1 - 0
src/views/coursewarePlay/index.tsx

@@ -228,6 +228,7 @@ export default defineComponent({
     })
     // 返回
     const goback = () => {
+      console.log('调用goback')
       postMessage({ api: 'goBack' })
     }
 

+ 1 - 0
src/views/exercise-after-class/index.tsx

@@ -278,6 +278,7 @@ export default defineComponent({
                   materialId: nextItem.materialId
                 }
               })
+              history.go(0)
             }
             if (nextItem?.type === materialType.曲目) {
               handleInit(1)