mirror of
https://github.com/PlayEdu/frontend.git
synced 2025-12-23 18:19:32 +08:00
首页列表切换优化
This commit is contained in:
@@ -55,7 +55,7 @@ const IndexPage = () => {
|
||||
} else if (tabKey === 3) {
|
||||
const arr: any = [];
|
||||
res.data.courses.map((item: any) => {
|
||||
if (records[item.id] && records[item.id].progress === 100) {
|
||||
if (records[item.id] && records[item.id].progress >= 10000) {
|
||||
arr.push(item);
|
||||
}
|
||||
});
|
||||
@@ -65,7 +65,7 @@ const IndexPage = () => {
|
||||
res.data.courses.map((item: any) => {
|
||||
if (
|
||||
!records[item.id] ||
|
||||
(records[item.id] && records[item.id].progress !== 100)
|
||||
(records[item.id] && records[item.id].progress < 10000)
|
||||
) {
|
||||
arr.push(item);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user