mirror of
https://github.com/PlayEdu/frontend.git
synced 2025-06-09 12:20:53 +08:00
首页列表切换优化
This commit is contained in:
parent
4558f63af8
commit
3003e3d33a
@ -55,7 +55,7 @@ const IndexPage = () => {
|
|||||||
} else if (tabKey === 3) {
|
} else if (tabKey === 3) {
|
||||||
const arr: any = [];
|
const arr: any = [];
|
||||||
res.data.courses.map((item: 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);
|
arr.push(item);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -65,7 +65,7 @@ const IndexPage = () => {
|
|||||||
res.data.courses.map((item: any) => {
|
res.data.courses.map((item: any) => {
|
||||||
if (
|
if (
|
||||||
!records[item.id] ||
|
!records[item.id] ||
|
||||||
(records[item.id] && records[item.id].progress !== 100)
|
(records[item.id] && records[item.id].progress < 10000)
|
||||||
) {
|
) {
|
||||||
arr.push(item);
|
arr.push(item);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user