Commit e0a9006e by renmanyi

feat:兼容contentVOList不存在此字段的白屏

parent ee49d1c9
/*
* @Author: yuananting
* @Date: 2021-08-05 11:26:25
* @LastEditors: yuananting
* @LastEditTime: 2021-08-18 18:27:06
* @LastEditors: renmanyi
* @LastEditTime: 2022-08-05 11:55:40
* @Description: 个人学习详情-全部tab页
* @Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
* @@Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
......@@ -39,13 +39,14 @@ function WholeData(props) {
// 渲染阶段信息
function renderStageInfo(item, index) {
const {contentVOList=[]} = item
return (
<div className='stage-info__item'>
<span className='stage-name'>
{SortConvert[index]}{item.stageName}
</span>
<span className='extra-info'>
{item.learnFinishNum || 0}/{item.learnAllNum || item.contentVOList.length}
{item.learnFinishNum || 0}/{item.learnAllNum || contentVOList.length}
</span>
</div>
);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment