首页列表切换优化

This commit is contained in:
禺狨 2023-03-27 17:44:29 +08:00
parent 4558f63af8
commit 3003e3d33a

View File

@ -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);
}