hookehuyr

fix(profile): 修复学习记录进度计算时未处理空值的问题

......@@ -138,6 +138,8 @@ const onLoad = async () => {
});
if (code) {
data.forEach((item) => {
item?.study_count = item?.study_count || 0;
item?.count = item?.count || 0;
item.record_progress = Math.floor((item?.study_count/item?.count)*100);
});
records.value.push(...data);
......