mirror of
https://github.com/PlayEdu/frontend.git
synced 2025-06-08 07:08:34 +08:00
首页列表切换优化
This commit is contained in:
parent
4558f63af8
commit
3003e3d33a
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user