Commit e0a9006e by renmanyi

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

parent ee49d1c9
/* /*
* @Author: yuananting * @Author: yuananting
* @Date: 2021-08-05 11:26:25 * @Date: 2021-08-05 11:26:25
* @LastEditors: yuananting * @LastEditors: renmanyi
* @LastEditTime: 2021-08-18 18:27:06 * @LastEditTime: 2022-08-05 11:55:40
* @Description: 个人学习详情-全部tab页 * @Description: 个人学习详情-全部tab页
* @Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有 * @Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
* @@Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有 * @@Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
...@@ -39,13 +39,14 @@ function WholeData(props) { ...@@ -39,13 +39,14 @@ function WholeData(props) {
// 渲染阶段信息 // 渲染阶段信息
function renderStageInfo(item, index) { function renderStageInfo(item, index) {
const {contentVOList=[]} = item
return ( return (
<div className='stage-info__item'> <div className='stage-info__item'>
<span className='stage-name'> <span className='stage-name'>
{SortConvert[index]}{item.stageName} {SortConvert[index]}{item.stageName}
</span> </span>
<span className='extra-info'> <span className='extra-info'>
{item.learnFinishNum || 0}/{item.learnAllNum || item.contentVOList.length} {item.learnFinishNum || 0}/{item.learnAllNum || contentVOList.length}
</span> </span>
</div> </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