liushengqiang 2 rokov pred
rodič
commit
ff848a481e

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

@@ -778,7 +778,7 @@ export default defineComponent({
           >
             {popupData.tabName}
           </div>
-          {data.isCourse && <PlayRecordTime ref={playRef} list={data.itemList} />}
+          {data.isCourse && <PlayRecordTime ref={playRef} list={data.knowledgePointList} />}
         </div>
 
         <Popup

+ 1 - 1
src/views/coursewarePlay/playRecordTime.tsx

@@ -47,7 +47,7 @@ export default defineComponent({
     /** 建议学习总时长 */
     const total = computed(() => {
       const _total = props.list.reduce(
-        (_total: number, item: any) => _total + item.adviseStudyTimeSecond,
+        (_total: number, item: any) => _total + (item.totalMaterialTimeSecond || 0),
         0
       )
       return _total