Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
mlaj
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2025-06-15 18:24:11 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
945d7d5348333589479e9cbd2a9f1ea0367d813b
945d7d53
1 parent
c37c473d
fix(profile): 修复学习记录进度计算时未处理空值的问题
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
src/views/profile/LearningRecordsPage.vue
src/views/profile/LearningRecordsPage.vue
View file @
945d7d5
...
...
@@ -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);
...
...
Please
register
or
login
to post a comment