فهرست منبع

建议学习时长

liushengqiang 2 سال پیش
والد
کامیت
ff848a481e
2فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 1 1
      src/views/coursewarePlay/index.tsx
  2. 1 1
      src/views/coursewarePlay/playRecordTime.tsx

+ 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